/* ===== EL AL — Global tokens ===== */
:root {
  --brand-navy:       #1E2680;
  --brand-navy-dark:  #15195E;
  --brand-light-blue: #4FB6EE;
  --text-primary:     #2A2C32;
  --text-muted:       #6B6F77;
  --border:           #D8D8DC;
  --border-strong:    #2A2C32;
  --bg-page:          #FFFFFF;
  --link:             #1E2680;
  --error:            #C0392B;
  --shadow-header:    0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card:      0 1px 3px rgba(0, 0, 0, 0.04);
  --radius-btn:       8px;
  --radius-card:      8px;
  --font-stack:       'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }
button { font-family: inherit; }

/* ===== Header (shared simple) ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: #fff;
  box-shadow: var(--shadow-header);
  position: relative;
  z-index: 10;
}

.site-header--simple .logo {
  height: 28px;
  width: auto;
  display: block;
}

.logo-link { line-height: 0; display: inline-block; }

.icon-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: #F4F4F7; }

/* ===== Login layout ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 60px;
}

.login-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 44px 44px;
  box-shadow: var(--shadow-card);
}

.login-card__title {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

/* ===== Fields (underline style) ===== */
.field { margin-bottom: 22px; }

.field__label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.req { color: var(--text-primary); }

.field__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-strong);
  padding: 4px 0;
  transition: border-color .15s ease;
}
.field__row:focus-within {
  border-bottom-color: var(--brand-navy);
}

.field__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary);
  padding: 6px 0;
}

.field__icon-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.field__icon-btn:hover { opacity: .7; }

/* ===== Forgot link line ===== */
.forgot-line {
  margin: 6px 0 24px;
  font-size: 14px;
  color: var(--text-primary);
}
.link { color: var(--link); text-decoration: underline; }
.link:hover { text-decoration: none; }
.link--strong { font-weight: 500; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn--primary {
  background: var(--brand-navy);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-navy-dark); }

.btn--outline {
  background: #fff;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}
.btn--outline:hover { background: rgba(30, 38, 128, 0.06); }

.divider {
  text-align: center;
  margin: 14px 0;
  font-size: 14px;
  color: var(--text-primary);
}

.register-line {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
}

/* ===== Inline error ===== */
.login-error {
  background: #FDECEA;
  border: 1px solid #F5C2BB;
  color: var(--error);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== Login decorative footer strip ===== */
.login-footer {
  margin-top: auto;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.login-footer__strip {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Eye icon (password) — slash hidden by default ===== */
#eyeSlash { display: none; }
.is-revealed #eyeSlash { display: inline; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .login-main { padding: 40px 16px; }
  .login-card { padding: 28px 22px; }
  .login-card__title { font-size: 26px; }
  .site-header { padding: 14px 18px; }
}
