@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    :root {
        --icu-gold: #C8A451;
        --icu-navy: #024173;
    }

    body {
        max-width:100%;
        font-family: 'Inter', sans-serif;
        min-height: 100vh;
    }


    .login-container {
        max-width: 100%;
        display: flex;
        min-height: 100vh;
        align-items: stretch;
    }


    /* Left Side - Admin Branding */
    .branding-section {
      flex: 1;
      min-height: 100vh;
      background: linear-gradient(135deg, var(--icu-navy) 0%, #035a9e 100%);
      padding: 60px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      position: relative;
      overflow: hidden;
      color: white;
  }

  .branding-section::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -50%;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle, rgba(200, 164, 81, 0.1) 0%, transparent 70%);
      animation: pulse 8s ease-in-out infinite;
  }

  @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 0.5; }
      50% { transform: scale(1.2); opacity: 0.8; }
  }

  .branding-content {
      position: relative;
      z-index: 2;
      max-width: 500px;
      text-align: center;
  }

  .logo-section {
      margin-bottom: 40px;
  }

  .logo-circle {
      width: 100px;
      height: 100px;
      background: var(--icu-gold);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      box-shadow: 0 10px 30px rgba(200, 164, 81, 0.3);
      animation: float 3s ease-in-out infinite;
  }

  @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
  }

  .logo-circle img {
      width: 100px;
      height: 50px;
      object-fit: contain;
  }

  .branding-content h1 {
      font-size: 32px;
      font-weight: 800;
      margin-bottom: 10px;
      letter-spacing: -0.5px;
  }

  .branding-content .subtitle {
      font-size: 16px;
      color: var(--icu-gold);
      font-weight: 600;
      margin-bottom: 30px;
      text-transform: uppercase;
      letter-spacing: 2px;
  }

  .mission-statement {
      font-size: 18px;
      line-height: 1.6;
      margin-bottom: 40px;
      opacity: 0.9;
      font-style: italic;
  }

  .admin-features {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-top: 40px;
  }

  .feature-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      transition: all 0.3s ease;
  }

  .feature-card:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: translateY(-5px);
  }

  .feature-card svg {
      width: 32px;
      height: 32px;
      fill: var(--icu-gold);
      margin-bottom: 10px;
  }

  .feature-card h3 {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 5px;
  }

  .feature-card p {
      font-size: 12px;
      opacity: 0.8;
  }

  /* Right Side - Login Form */
  .form-section {
      flex: 1;
      padding: 60px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: white;
      min-height: 100vh;
  }

  .form-container {
      width: 100%;
      max-width: 600px;
  }

  .form-header {
      text-align: center;
      margin-bottom: 40px;
  }


  .form-header h2 {
      font-size: 32px;
      font-weight: 800;
      color: var(--icu-navy);
      margin-bottom: 10px;
  }

  .form-header p {
      color: #666;
      font-size: 15px;
  }

  .email-display {
   font-size: 15px;
   font-weight: 600;
   color: var(--icu-navy);
   margin: 10px 0;
}


  /* Form help row (e.g., show passwords toggle) */
  .form-help {
      margin-top: 8px;
      display: flex;
      justify-content: flex-end;
  }

  #togglePasswords {
      background: transparent;
      color: var(--icu-navy);
      border: none;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: 12px;
      padding: 8px 12px;
      cursor: pointer;
      transition: text-decoration 0.2s ease;
  }

  #togglePasswords:hover {
      text-decoration: underline;
      color: var(--icu-gold);
      border: none;
      box-shadow: none;
      transform: translateY(-1px);
  }

  #togglePasswords:active {
      transform: translateY(0);
  }

  
  .login-form {
   margin-top: 30px;
}

.form-group {
   margin-bottom: 24px;
}

.form-group label {
   display: block;
   margin-bottom: 8px;
   color: var(--icu-navy);
   font-weight: 600;
   font-size: 14px;
}

.input-wrapper {
   position: relative;
}

.input-icon {
   position: absolute;
   left: 16px;
   top: 50%;
   transform: translateY(-50%);
   width: 20px;
   height: 20px;
   fill: #b89440;
   pointer-events: none;
}

.form-control {
   width: 100%;
   padding: 14px 16px 14px 48px;
   border: 2px solid #e0e0e0;
   border-radius: 10px;
   font-size: 12px;
   font-family: 'Inter', sans-serif;
   transition: all 0.3s ease;
   background: #fafafa;
}

.form-control:focus {
   outline: none;
   border-color: var(--icu-gold);
   background: white;
   box-shadow: 0 0 0 4px rgba(200, 164, 81, 0.1);
}

.password-toggle {
   position: absolute;
   right: 16px;
   top: 50%;
   transform: translateY(-50%);
   background: none;
   border: none;
   cursor: pointer;
   padding: 4px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.password-toggle svg {
   width: 20px;
   height: 20px;
   fill: #b89440b6;
   transition: fill 0.3s ease;
}

.password-toggle:hover svg {
   fill: #b89440;
}

.btn-login {
   width: 100%;
   padding: 16px;
   background: var(--icu-gold);
   color: white;
   border: none;
   border-radius: 10px;
   font-size: 12px;
   font-weight: 700;
   font-family: 'Inter', sans-serif;
   cursor: pointer;
   transition: all 0.3s ease;
   text-transform: capitalize;
   letter-spacing: 1px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
}

.btn-login .spinner {
   width: 18px;
   height: 18px;
   border-radius: 999px;
   border: 2px solid rgba(255, 255, 255, 0.35);
   border-top-color: #ffffff;
   opacity: 0;
   transition: opacity 0.2s ease;
   pointer-events: none;
}

.btn-login .btn-label {
   display: inline-flex;
   align-items: center;
   gap: 8px;
}

.btn-login.is-loading {
   cursor: wait;
}

.btn-login.is-loading .spinner {
   opacity: 1;
   animation: spinner-rotate 0.75s linear infinite;
}

.btn-login:hover {
   background: #b89440;
   transform: translateY(-2px);
   box-shadow: 0 10px 25px rgba(200, 164, 81, 0.3);
}

.btn-login:active {
   transform: translateY(0);
}

.btn-login:disabled {
   opacity: 0.8;
   pointer-events: none;
}

@keyframes spinner-rotate {
   to {
       transform: rotate(360deg);
   }
}

.divider {
   display: flex;
   align-items: center;
   text-align: center;
   margin: 30px 0;
   color: #999;
   font-size: 14px;
}

.divider::before,
.divider::after {
   content: '';
   flex: 1;
   border-bottom: 1px solid #e0e0e0;
}

.divider span {
   padding: 0 15px;
}

.support-link {
   text-align: center;
   margin-top: 30px;
   padding-top: 30px;
   border-top: 1px solid #e0e0e0;
}

.support-link p {
   color: #666;
   font-size: 14px;
}

.support-link a {
   color: var(--icu-navy);
   text-decoration: none;
   font-weight: 600;
   transition: color 0.3s ease;
}

.support-link a:hover {
   color: var(--icu-gold);
}

/* Responsive Design */
@media (max-width: 1200px) {
   .login-container {
       flex-direction: column;
   }

   .branding-section {
       display: none;
   }

   .admin-features {
       grid-template-columns: repeat(2, 1fr);
       gap: 15px;
   }

   .form-section {
       padding: 40px 30px;
   }

   .branding-content h1 {
       font-size: 28px;
   }

   .mission-statement {
       font-size: 16px;
   }
}

@media (max-width: 576px) {
   .branding-section {
       padding: 30px 20px;
   }

   .form-section {
       padding: 30px 20px;
   }

   .admin-features {
       grid-template-columns: 1fr;
   }

   .form-header h2 {
       font-size: 26px;
   }
}

/* Global watermark for application and login pages (exclude support-page) */
.login-container:not(.support-page) .branding-section {
    position: relative;
}

.login-container:not(.support-page) .branding-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/Logo.png');
    background-repeat: no-repeat;
    background-position: center 35%;
    background-size: 100%;
    opacity: .05;
    pointer-events: none;
}