:root {
  /* Spacing scale */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  
  /* Colors */
  --color-primary: #283199;
  --color-secondary: #ed1c24;
  --color-background: #f6f7fb;
  --color-text-primary: #0f172a;
  --color-text-secondary: #6c757d;
  --color-border: #dfe3ec;
}

html, body, input, textarea, button {
    font-family: 'Century Gothic', sans-serif !important;
}

body {
    background: var(--color-background);
}

.login-logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
}

.login-page {
    min-height: 100svh;
    background: transparent;
}

.login-shell {
    min-height: 100vh;
}

.login-container {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.login-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.welcome {
    margin-top: 40px;
    font-size: clamp(1.75rem, 4vw + 1rem, 2.25rem);
    font-weight: 700;
    color: var(--color-primary);
}

.welcome-subtitle {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.1);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #eef2ff;
    color: #283199;
    font-weight: 600;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.login-card h1 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 1.75rem);
    margin: 8px 0 4px;
    color: var(--color-text-primary);
}

.support-text {
    color: #6c757d;
    margin: 0 0 12px;
    font-size: 15px;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #1d2538;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-details {
    border-radius: 14px;
    height: 52px;
    padding: 12px 14px;
    background: #f8f9ff;
    border: 1px solid #dfe3ec;
    box-shadow: inset 0 2px 6px rgba(17, 17, 26, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-details:focus {
    outline: none;
    border-color: #283199;
    box-shadow: 0 0 0 3px rgba(40, 49, 153, 0.1);
    background: #fff;
}

.signin-btn {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    background: #ed1c24 !important;
    border-color: #ed1c24 !important;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 45px -20px rgba(237, 28, 36, 0.45);
}

.forgot-login {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.forgot-login a {
    color: #283199;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-login a:hover {
    color: #4c64ef;
    text-decoration: underline;
}

.back-btn {
    margin-top: 20px !important;
    border-radius: 18px;
}

.swal2-confirm {
    background-color: #ED1C24 !important;
    color: white !important;
    display: block !important;
}

.swal2-confirm:hover {
    color: white !important;
    background-color: #ee2d41 !important;
}

.fv-plugins-message-container .invalid-feedback {
    color: #ff0000 !important;
}

.invalid-feedback {
    display: block;
    color: #ED1C24 !important;
}

@media (max-width: 768px) {
  .login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 12px 28px;
  }

  .login-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .login-container {
    width: min(94vw, 660px);
    padding: 0 var(--space-4);
    gap: var(--space-5);
  }

  .login-hero {
    margin-bottom: 4px;
  }

  .welcome {
    margin-top: 12px;
    font-size: clamp(26px, 5vw, 34px);
  }

  .welcome-subtitle {
    font-size: clamp(16px, 3.6vw, 18px);
  }

  .login-card {
    width: 100%;
    padding: var(--space-6) var(--space-5);
    border-radius: 22px;
    box-shadow: 0 32px 88px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(15, 23, 42, 0.12);
  }

  .login-card h1 {
    font-size: clamp(24px, 4vw, 30px);
    margin-bottom: 8px;
  }

  .support-text {
    font-size: clamp(16px, 3.4vw, 18px);
  }

  .login-card:hover {
    transform: none;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.09);
  }

  .login-details {
    height: 64px;
    font-size: 17px;
  }

  .signin-btn {
    height: 62px;
    font-size: 18px;
    border-radius: 18px;
  }

  .forgot-login {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--space-5);
    font-size: 15px;
  }

  .forgot-login a {
    text-align: center;
  }
}

/* Small devices (≥576px) */
@media (min-width: 576px) {
  .login-container {
    max-width: 540px;
  }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
  .login-container {
    max-width: 720px;
  }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
  .login-container {
    max-width: 960px;
  }
}