*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #073980;
  --blue-dark:   #2572a8;
  --blue-darker: #1a5a8a;
  --blue-light:  #4fa3d4;
  --blue-pale:   #e8f4fc;
  --orange:      #e64308;
  --orange-light:#ff9800;
  --text:        #1a2332;
  --text-sec:    #4a5568;
  --text-light:  #8a9ab0;
  --border:      #dde5ef;
  --bg:          #f0f5fa;
  --white:       #ffffff;
  --red:         #e53e3e;
  --green:       #2e7d32;
}

body {
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ── LEFT PANEL ── */
.left-panel {
  width: 460px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--blue-darker) 0%, var(--blue) 60%, #5bb8e8 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px;
}
.left-panel::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.06);
  top: -120px; right: -140px;
}
.left-panel::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05);
  bottom: 60px; left: -80px;
}
.left-deco-ring {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,.07);
  bottom: 220px; right: -50px;
}
.left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.left-top { position: relative; z-index: 2; }

/* Logo */
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; object-fit: contain; }
.logo-fallback { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 46px; height: 46px; background: rgba(255,255,255,.15);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.logo-text { font-size: 26px; font-weight: 900; color: white; letter-spacing: -.5px; font-family: 'Cairo', sans-serif; }
.logo-text span { color: var(--orange-light); }

.left-hero { position: relative; z-index: 2; margin-top: 60px; }
.left-hero h2 {
  font-size: 34px; font-weight: 800; color: white; line-height: 1.2;
  letter-spacing: -.5px; margin-bottom: 16px;
}
.left-hero p { font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.7; }

.left-features { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; margin-top: 44px; }
.feature-pill {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 12px 16px;
  backdrop-filter: blur(6px);
  animation: slideInLeft .5s ease both;
}
.feature-pill:nth-child(2) { animation-delay: .1s; }
.feature-pill:nth-child(3) { animation-delay: .2s; }
.feature-pill-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: white; flex-shrink: 0;
}
.feature-pill-text { font-size: 13.5px; color: rgba(255,255,255,.9); font-weight: 500; }

.left-bottom { position: relative; z-index: 2; }
.left-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }

/* ── RIGHT PANEL ── */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.form-box {
  width: 100%;
  max-width: 440px;
  animation: fadeUp .55s ease both;
}

.form-header { margin-bottom: 32px; }
.form-header h1 {
  font-size: 28px; font-weight: 800; color: var(--text);
  letter-spacing: -.4px; margin-bottom: 6px;
}
.form-header p { font-size: 14px; color: var(--text-light); }
.form-header p a { color: var(--blue); font-weight: 600; text-decoration: none; }
.form-header p a:hover { text-decoration: underline; }

/* Social buttons */
.social-row { display: flex; gap: 10px; margin-bottom: 24px; }
.social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 10px; border: 1.5px solid var(--border);
  background: white; font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.social-btn:hover { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; color: var(--text-light); font-size: 12.5px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

label {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 5px;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute; left: 13px; font-size: 13px; color: var(--text-light);
  pointer-events: none; z-index: 1; transition: color .2s;
}
.input-wrap:focus-within .input-icon { color: var(--blue); }

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%; padding: 11px 13px 11px 38px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 14px; color: var(--text);
  background: white; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: var(--text-light); }
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54,140,195,.12);
}
input.error { border-color: var(--red); }
input.error:focus { box-shadow: 0 0 0 3px rgba(229,62,62,.1); }

.eye-toggle {
  position: absolute; right: 12px; background: none; border: none;
  color: var(--text-light); cursor: pointer; font-size: 14px; padding: 4px;
  transition: color .15s;
}
.eye-toggle:hover { color: var(--blue); }

/* Password strength */
.pw-strength { margin-top: 8px; }
.pw-strength-bars { display: flex; gap: 4px; height: 3px; margin-bottom: 5px; }
.pw-bar { flex: 1; border-radius: 2px; background: var(--border); transition: background .3s; }
.pw-bar.weak   { background: var(--red); }
.pw-bar.medium { background: var(--orange); }
.pw-bar.strong { background: var(--green); }
.pw-label { font-size: 11.5px; color: var(--text-light); }

/* Error messages */
.error-msg {
  font-size: 12px; color: var(--red);
  display: flex; align-items: center; gap: 4px; margin-top: 4px;
}

/* Checkbox */
.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 20px 0 24px; font-size: 13px; color: var(--text-sec); cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 18px; height: 18px; padding: 0;
  accent-color: var(--blue); flex-shrink: 0; margin-top: 1px; cursor: pointer;
}
.check-row a { color: var(--blue); font-weight: 600; text-decoration: none; }
.check-row a:hover { text-decoration: underline; }

/* Submit button */
.btn-submit {
  width: 100%; padding: 14px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white; font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 4px 16px rgba(54,140,195,.35);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(54,140,195,.45);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  pointer-events: none;
}

.login-link {
  text-align: center; margin-top: 20px;
  font-size: 13.5px; color: var(--text-sec);
}
.login-link a { color: var(--blue); font-weight: 700; text-decoration: none; }
.login-link a:hover { text-decoration: underline; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── LOGIN SPECIFIC ── */
.alert-success {
  display: flex; align-items: center; gap: 8px;
  background: #f0fdf4; border: 1.5px solid #86efac;
  color: var(--green); border-radius: 10px;
  padding: 11px 14px; font-size: 13.5px; font-weight: 500;
  margin-bottom: 20px;
}

.login-options {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 24px;
}
.check-inline {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-sec); cursor: pointer;
}
.check-inline input[type="checkbox"] {
  width: 16px; height: 16px; padding: 0;
  accent-color: var(--blue); cursor: pointer;
}
.forgot-link {
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* ── VERIFY EMAIL SPECIFIC ── */
.verify-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--blue-pale); border: 2px solid rgba(54,140,195,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--blue);
  margin: 0 auto 24px;
}

.btn-logout {
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--border); background: white;
  color: var(--text-sec); font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-logout:hover {
  border-color: var(--red); color: var(--red); background: #fff5f5;
}

/* Mobile */
@media (max-width: 900px) {
  .left-panel { display: none; }
  .right-panel { padding: 30px 20px; }
}
@media (max-width: 520px) {
  .form-header h1 { font-size: 22px; }
  .social-row { flex-direction: column; }
}