*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  --brand:      #0B74B8;
  --brand-dark: #085d93;
  --text:       #1a2535;
  --muted:      #6b7a90;
  --border:     #d8e8f3;
  --bg:         #f0f6fc;
  --white:      #ffffff;
  --radius:     10px;
}

html, body { 
  height: 100%; 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  overflow: hidden; 
}

.layout { 
  display: flex; 
  height: 100vh; 
  width: 100vw; 
}

/* ── LEFT ── */
.left {
  flex: 1;
  position: relative;
  background: linear-gradient(145deg, #0d5fa0 0%, #1a8fd1 45%, #0b74b8 70%, #064d82 100%);
  display: flex;
  flex-direction: column;
  align-items: center; /* Centered container */
  justify-content: center;
  padding: 80px 40px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-125%); /* Moved further left from -110% */
  width: 35%; /* Increased from 25% */
  max-height: 85%;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
  object-position: bottom right;
  opacity: 1;
}

.left::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 65%);
  top: -140px; left: -100px;
  border-radius: 50%;
}

.left::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 65%);
  bottom: -100px; right: -70px;
  border-radius: 50%;
}

.left-brand {
  position: absolute;
  top: 36px; left: 48px;
  display: flex; align-items: center; gap: 12px;
  z-index: 10;
}

.logo-box {
  width: 46px; height: 46px;
  background: rgba(255,255,255,.18);
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.logo-box img { 
  width: 36px; 
  height: 36px; 
  object-fit: contain; 
}

.left-brand span {
  font-size: 1rem; font-weight: 700;
  color: rgba(255,255,255,.92); letter-spacing: .2px;
}

.left-headline {
  position: relative; z-index: 3;
  text-align: left; margin-bottom: 48px;
  width: 100%; max-width: 400px;
  margin-left: 260px; /* Increased from 200px for more space */
}

.left-headline h2 {
  font-size: 2.2rem; font-weight: 800;
  color: #fff; line-height: 1.25; letter-spacing: -.5px;
}

.left-headline h2 em {
  font-style: normal;
  color: rgba(255,255,255,.55);
  font-weight: 300;
}

.left-headline p {
  margin-top: 14px;
  font-size: .95rem;
  color: rgba(255,255,255,.65);
}

.features {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; gap: 24px;
  width: 100%; max-width: 400px;
  margin-left: 260px; /* Align with headline */
}

.feature {
  display: flex; align-items: flex-start; gap: 16px;
  animation: fadeLeft .6s both;
}

.feature:nth-child(2) { animation-delay: .1s; }
.feature:nth-child(3) { animation-delay: .2s; }

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.feat-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,255,255,.11);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

.feat-icon svg { 
  stroke: rgba(255,255,255,.9); 
}

.feat-text strong {
  display: block; font-size: .95rem; font-weight: 700;
  color: #fff; line-height: 1.3;
}

.feat-text p {
  font-size: .83rem; color: rgba(255,255,255,.6); margin-top: 3px;
}

/* ── RIGHT ── */
.right {
  width: 430px; flex-shrink: 0;
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: -4px 0 40px rgba(0,0,0,.09);
  position: relative;
}

.right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), #38bdf8);
}

.right-inner {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 48px 44px;
  animation: slideUp .5s cubic-bezier(.22,1,.36,1) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-header {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  margin-bottom: 32px;
}

.form-logo {
  margin-bottom: 2px;
}

.form-logo img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border-radius: 16px;
}

.avatar {
  width: 62px; height: 62px;
  background: var(--bg);
  border-radius: 16px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

.avatar svg { 
  stroke: var(--brand); 
}

.form-header h1 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); letter-spacing: -.2px;
}

.form-header p {
  font-size: .82rem; color: var(--muted); margin-top: 5px;
}

.field { 
  position: relative; 
  margin-bottom: 16px; 
}

.field label {
  display: block; font-size: .77rem; font-weight: 600;
  color: var(--muted); margin-bottom: 6px; letter-spacing: .15px;
}

.field input {
  width: 100%; height: 46px;
  padding: 0 42px 0 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit; font-size: .91rem;
  color: var(--text); background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder { 
  color: #b8cad8; 
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,116,184,.1);
}

.field select {
  width: 100%; height: 46px;
  padding: 0 40px 0 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit; font-size: .91rem;
  color: var(--text); background: var(--white);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,116,184,.1);
}

.eye-btn {
  position: absolute; right: 11px; bottom: 11px;
  background: none; border: none; cursor: pointer;
  color: var(--muted);
  display: flex; align-items: center; padding: 2px;
  transition: color .2s;
}

.eye-btn:hover { 
  color: var(--brand); 
}

.row-options {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}

.remember {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; user-select: none;
}

.remember input[type="checkbox"] {
  appearance: none; width: 16px; height: 16px;
  border: 2px solid var(--border); border-radius: 4px;
  cursor: pointer; transition: all .18s;
  position: relative; flex-shrink: 0;
}

.remember input[type="checkbox"]:checked {
  background: var(--brand); border-color: var(--brand);
}

.remember input[type="checkbox"]:checked::after {
  content: ''; position: absolute;
  left: 3px; top: 0px;
  width: 5px; height: 8px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.remember span { 
  font-size: .81rem; 
  color: var(--muted); 
}

.forgot-link {
  font-size: .81rem; color: var(--brand);
  font-weight: 600; text-decoration: none;
  transition: opacity .2s;
}

.forgot-link:hover { 
  opacity: .75; 
}

.btn-login {
  width: 100%; height: 47px;
  background: var(--brand); color: #fff;
  border: none; border-radius: var(--radius);
  font-family: inherit; font-size: .94rem; font-weight: 700;
  cursor: pointer; letter-spacing: .3px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(11,116,184,.28);
}

.btn-login:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,116,184,.38);
}

.btn-login:active { 
  transform: translateY(0); 
}

.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 14px;
}

.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.divider span { 
  font-size: .76rem; color: var(--muted); white-space: nowrap; 
}

.register-row { 
  text-align: center; font-size: .83rem; color: var(--muted); 
}

.register-row a {
  color: var(--brand); font-weight: 700;
  text-decoration: none; transition: opacity .2s;
}

.register-row a:hover { 
  opacity: .75; text-decoration: underline; 
}

.legal {
  padding: 16px 44px;
  border-top: 1px solid var(--border);
  font-size: .71rem; color: #a0b0c0; line-height: 1.6;
  background: #f8f9fa;
}

.legal a { 
  color: var(--brand); text-decoration: none; 
}

.legal a:hover { 
  text-decoration: underline; 
}

.left-copyright {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.left-copyright p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  letter-spacing: 0.3px;
}

.left-copyright a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.left-copyright a:hover {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .left { display: none; }
  .right { width: 100%; }
}

/* ── AUTHENTICATION STYLES ── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0d5fa0 0%, #1a8fd1 45%, #0b74b8 70%, #064d82 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--muted);
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert a {
    color: inherit;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--muted);
    font-size: 14px;
}

.auth-footer a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 16px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
}