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

:root {
  --navy: #071226;
  --gold: #D4A64D;
  --gold-glow: #F7C873;
  --gold-dark: #B8892E;
  --white: #FFFFFF;
  --border-gold: rgba(212, 166, 77, 0.35);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.50);
  --text-dim: rgba(255, 255, 255, 0.35);
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

body,
.login-page,
.login-shell,
.login-wrapper,
.auth-page {
  background-image: url('/assets/images/logo-bg.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

.login-page,
.login-shell,
.login-wrapper,
.auth-page {
  width: 100vw !important;
  min-height: 100vh !important;
}

.hidden { display: none !important; }

/* ===== FULL-SCREEN BACKGROUND ===== */
.login-page {
  position: relative;
  overflow: hidden;
}

/* ===== LEFT INFO TEXT ===== */
.left-info-block {
  position: absolute;
  left: 220px !important;
  top: 570px !important;
  width: 520px !important;
  z-index: 5;
  text-align: left;
}

.left-info-block::before {
  content: "";
  position: absolute;
  inset: -20px -26px;
  background: linear-gradient(90deg, rgba(7, 18, 38, 0.42), rgba(7, 18, 38, 0.08));
  border-radius: 22px;
  z-index: -1;
  pointer-events: none;
}

.left-tagline,
.left-info-headline {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  line-height: 1.45;
  margin-bottom: 34px !important;
}

.left-features {
  display: flex;
  flex-direction: column;
}

.left-feature-row,
.left-feature {
  display: flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
  margin-bottom: 24px !important;
}

.left-feature-icon {
  flex-shrink: 0;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4A64D !important;
  filter: drop-shadow(0 0 10px rgba(212, 166, 77, 0.35));
}

.left-feature-icon svg {
  width: 42px;
  height: 42px;
}

.left-feature-title {
  color: #F7C873 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}

.left-feature-desc {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.left-footer {
  position: absolute;
  left: 220px !important;
  top: 900px;
  bottom: auto;
  z-index: 5;
  margin-top: 32px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.left-footer p {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.8;
}

/* ===== RIGHT LOGIN CARD ===== */
.login-card {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 440px;
  max-width: 440px;
  min-height: 640px;
  padding: 40px 36px 32px;
  background: rgba(7, 18, 38, 0.88);
  border: 1px solid rgba(212, 166, 77, 0.35);
  border-radius: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.50);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 340px;
}

/* ===== TABS ===== */
.login-tabs {
  display: flex;
  width: 100%;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  height: 42px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  background: transparent;
  border: 1px solid rgba(212, 166, 77, 0.25);
  color: var(--text-muted);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold-glow) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border-color: transparent;
  color: var(--navy);
}

.tab-btn:hover:not(.active) {
  border-color: rgba(212, 166, 77, 0.45);
  color: var(--text-soft);
}

/* ===== FORM ===== */
.login-form {
  width: 100%;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
}

.login-form input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(212, 166, 77, 0.22);
  border-radius: 14px;
  background: rgba(7, 18, 38, 0.65);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.login-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 166, 77, 0.12);
}

/* ===== ENTER BUTTON ===== */
.btn-enter {
  width: 100%;
  height: 60px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.15s, filter 0.2s;
}

.btn-gold {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-glow) 0%, var(--gold) 50%, var(--gold-dark) 100%);
}

.btn-gold:hover:not(:disabled) {
  box-shadow: 0 8px 28px rgba(247, 200, 115, 0.32);
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-enter:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  stroke: var(--navy);
}

/* ===== CARD BADGES ===== */
.card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
}

.badge {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 5px 10px;
  border: 1px solid rgba(212, 166, 77, 0.15);
  border-radius: 6px;
  text-transform: uppercase;
}

.login-error {
  width: 100%;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.30);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 16px;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .left-info-block { left: 160px !important; top: 550px !important; width: 460px !important; }
  .left-footer { left: 160px !important; top: 880px; }
  .login-card { right: 48px; width: 400px; max-width: 400px; min-height: 600px; }
}

@media (max-width: 1024px) {
  .left-info-block { left: 100px !important; top: 530px !important; width: 400px !important; }
  .left-footer { left: 100px !important; top: 860px; }
  .login-card { right: 32px; width: 380px; max-width: 380px; padding: 36px 28px 28px; }
}

@media (max-width: 768px) {
  html, body { overflow: auto; }

  .login-page {
    height: auto;
    min-height: 100vh;
    background-attachment: scroll;
  }

  .left-info-block {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    padding: 540px 28px 0;
  }

  .left-footer {
    position: relative;
    left: auto !important;
    top: auto;
    bottom: auto;
    padding: 32px 28px 32px;
    margin-top: 32px !important;
  }

  .login-card {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: calc(100% - 40px);
    max-width: 440px;
    min-height: auto;
    margin: 0 auto 48px;
  }
}

@media (max-width: 480px) {
  .left-info-block { padding-top: 500px; }
  .left-feature-icon { width: 36px; height: 36px; }
  .left-feature-icon svg { width: 36px; height: 36px; }
  .login-card { width: calc(100% - 32px); padding: 32px 24px 24px; }
  .card-badges { gap: 6px; }
  .badge { font-size: 7px; padding: 4px 8px; }
}
