/* ============================================================
   HCD Rivadavia · Login Page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0d1b36;
  --navy-light: #162444;
  --gold: #c9a227;
  --gold-light: #e0b93a;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #f0f4f8;
}

/* ── Two-panel layout ──────────────────────────────────────── */
.login-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left panel — institutional brand */
.login-left {
  flex: 0 0 42%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.login-left::before,
.login-left::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 162, 39, .07);
}

.login-left::before {
  width: 500px;
  height: 500px;
  bottom: -180px;
  right: -120px;
}

.login-left::after {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -80px;
  background: rgba(201, 162, 39, .05);
}

/* Gold top accent bar */
.login-left .gold-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.login-left .brand-logo {
  width: 130px;
  margin-bottom: 28px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .4));
  position: relative;
  z-index: 1;
}

.login-left .brand-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-left .brand-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.login-left .brand-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.login-left .brand-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

.login-left .brand-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  text-align: center;
  max-width: 260px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Right panel — login form */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #f0f4f8;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(13, 27, 54, .12);
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 380px;
}

.login-card .login-header {
  margin-bottom: 28px;
}

.login-card .login-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 6px;
}

.login-card .login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.login-card .login-subtitle {
  font-size: 13px;
  color: #6b7a99;
  margin-top: 4px;
}

/* Form fields */
.login-card .form-group {
  margin-bottom: 16px;
}

.login-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7a99;
  margin-bottom: 6px;
}

.login-card .form-control {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--navy);
  background: #fafbfc;
  transition: all .2s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.login-card .form-control:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 27, 54, .1);
}

/* Submit button */
.login-card .btn-login {
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .22s ease;
  margin-top: 8px;
  letter-spacing: .02em;
}

.login-card .btn-login:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 16px rgba(13, 27, 54, .3);
  transform: translateY(-1px);
}

/* Remember + links */
.login-card .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
}

.login-card .login-options label {
  text-transform: none;
  letter-spacing: 0;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}

.login-card .login-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: color .2s;
}

.login-card .login-link:hover {
  color: var(--gold);
}

.login-card .login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #9aa0b2;
}

/* Responsive */
@media (max-width: 768px) {
  .login-left {
    display: none;
  }

  .login-right {
    padding: 24px 16px;
    background: var(--navy);
    align-items: flex-start;
    padding-top: 60px;
  }

  .login-card {
    max-width: 100%;
  }
}