/* PPMS Modern Clean Styling System (assets/style.css) */

:root {
  --primary: #1e40af;
  --primary-hover: #1d4ed8;
  --secondary: #475569;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #cbd5e1;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.header-banner h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-banner p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
  padding: 2rem;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
  background-color: #fff;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.captcha-img {
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 48px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
  background-color: var(--primary-hover);
}

.btn-secondary { background-color: var(--secondary); }
.btn-secondary:hover { background-color: #334155; }
.btn-danger { background-color: var(--danger); }
.btn-danger:hover { background-color: #991b1b; }
.btn-success { background-color: var(--success); }
.btn-success:hover { background-color: #166534; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
}

.alert-danger { background-color: #fef2f2; color: var(--danger); border: 1px solid #fecaca; display: block; }
.alert-success { background-color: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; display: block; }
.alert-warning { background-color: #fffbeb; color: var(--warning); border: 1px solid #fde68a; display: block; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 480px;
  padding: 2rem;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.links-group {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.links-group a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.links-group a:hover {
  text-decoration: underline;
}

.strength-meter {
  height: 6px;
  border-radius: 3px;
  background-color: #e2e8f0;
  margin-top: 0.5rem;
  overflow: hidden;
  transition: all 0.3s;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s, background-color 0.3s;
}

.strength-weak { width: 33%; background-color: var(--danger); }
.strength-medium { width: 66%; background-color: var(--warning); }
.strength-strong { width: 100%; background-color: var(--success); }
