*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1f3d;
  --navy-light: #1a3260;
  --green: #059669;
  --green-dark: #047857;
  --amber: #d97706;
  --red: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body { font-family: var(--font); background: var(--gray-50); color: var(--gray-800); min-height: 100vh; }

.hidden { display: none !important; }

.split-layout {
  display: flex;
  min-height: 100vh;
}

.brand-panel {
  flex: 1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.brand-content { max-width: 400px; }

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.brand-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: white;
}

.brand-tagline {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.brand-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.feat-icon { font-size: 1.1rem; }

.form-panel {
  flex: 0 0 480px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.form-container { width: 100%; max-width: 380px; }

.form-title { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.form-sub { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 1.75rem; }

.role-tabs {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.role-tab {
  flex: 1;
  padding: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.15s;
}

.role-tab.active {
  background: var(--navy);
  color: white;
}

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-600); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.field input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: border-color 0.15s;
  outline: none;
}
.field input:focus { border-color: var(--navy); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3.5rem; }
.pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
}

.btn-primary {
  width: 100%;
  padding: 0.8rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--navy-light); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
  width: 100%;
  padding: 0.75rem;
  background: none;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-outline:hover { background: var(--navy); color: white; }

.btn-link {
  background: none;
  border: none;
  color: var(--gray-600);
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0.25rem 0;
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--gray-400);
  font-size: 0.82rem;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

.error-msg {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.success-msg {
  background: #f0fdf4;
  color: var(--green-dark);
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .split-layout { flex-direction: column; }
  .brand-panel { padding: 2rem 1.5rem; flex: none; }
  .brand-tagline { font-size: 1.6rem; }
  .feature-list { display: none; }
  .form-panel { flex: 1; padding: 1.5rem; }
}
