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

:root {
  --blue:       #064288;
  --blue-dark:  #053470;
  --blue-light: #e8f0fa;
  --green:      #7fc348;
  --yellow:     #febb12;
  --text:       #0d1f3c;
  --muted:      #5a6480;
  --border:     #dde3f0;
  --bg:         #f4f6fb;
  --white:      #ffffff;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Split layout */
.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 880px;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(43,77,168,0.13);
}

/* Left panel — brand */
.login-brand {
  background: var(--blue);
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(109,190,69,0.18);
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(245,194,0,0.12);
}

.brand-logo {
  width: 180px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.brand-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.brand-dots {
  display: flex;
  gap: 8px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.brand-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.brand-dots span:nth-child(1) { background: var(--green); }
.brand-dots span:nth-child(2) { background: var(--yellow); }
.brand-dots span:nth-child(3) { background: rgba(255,255,255,0.4); }

/* Right panel — form */
.login-form-panel {
  background: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.form-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert.warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert.info    { background: var(--blue-light); color: var(--blue); border: 1px solid #c7d4f5; }

.field {
  margin-bottom: 20px;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.label-link {
  font-weight: 400;
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
}
.label-link:hover { text-decoration: underline; }

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: #fafbfd;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43,77,168,0.12);
  background: var(--white);
}

button[type="submit"] {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.3px;
}
button[type="submit"]:hover  { background: var(--blue-dark); }
button[type="submit"]:active { transform: scale(0.99); }

.link {
  text-align: center;
  margin-top: 20px;
}
.link a { color: var(--blue); text-decoration: none; font-size: 14px; }
.link a:hover { text-decoration: underline; }

/* Green accent bar at top of form */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, #064288 0%, #7fc348 60%, #febb12 100%);
  border-radius: 4px;
  margin-bottom: 32px;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .login-wrapper {
    flex-direction: column;
    max-width: 420px;
  }
  .login-brand {
    width: 100%;
    padding: 32px 24px;
    min-height: 180px;
  }
  .brand-logo { width: 100px; margin-bottom: 16px; }
  .brand-title { font-size: 18px; }
  .login-form-panel { padding: 32px 28px; }
}

/* Password pages reuse same card style */
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(43,77,168,0.10);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.logo img { height: 36px; width: auto; }
.logo span { font-size: 20px; font-weight: 800; color: var(--blue); }

h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}

p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
