:root {
  --navy: #143159;
  --navy-deep: #132d51;
  --brand: #102b55;
  --footer-blue: #1e6bae;
  --line: #d7d7d7;
  --button: #9ba8b9;
  --button-hover: #8a9aab;
  --text: #121212;
  --input-height: 45px;
  --input-height-mobile: 50px;
  --border-radius: 8px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
}



body {
  min-height: 100vh;
  background-color: white;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 55% 80%, rgba(19, 109, 191, .28), transparent 37%),
    radial-gradient(circle at 16% 25%, rgba(27, 74, 122, .38), transparent 38%);
  background-size: 87px 80px, 87px 80px, auto, auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.brands{
    width:80%;
   margin:auto;
   text-align: center;
}

.brands img{
   width:90%;
   margin:auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.025) 79px 82px),
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(255,255,255,.025) 84px 88px);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 638px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.login-card {
  width: 100%;
  background: #f7f7f7;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.brand-area {
  height: auto;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d5d5d5;
  padding: 20px 15px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand-words {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-image {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.form-area {
  background: #f8f8f8;
  padding: 20px 15px 30px 15px;
}

.login-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.field-group {
  margin-bottom: 15px;
}

.field-group label {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
}

.field-group input {
  width: 100%;
  height: var(--input-height);
  padding: 10px 12px;
  border: 2px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.field-group input[type="date"] {
  width: 100%;
  height: var(--input-height);
  padding: 10px 12px;
  border: 2px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  min-height: auto;
}

.field-group input:focus,
.field-group input[type="date"]:focus {
  border-color: #2ea6d9;
  box-shadow: 0 0 0 3px rgba(46,166,217,.18);
}

.field-group input::placeholder {
  color: #aaa;
  font-size: 14px;
}

.field-group input[type="date"]::-webkit-calendar-picker-indicator {
  padding: 5px;
  cursor: pointer;
}

.field-group input[type="number"]::-webkit-inner-spin-button,
.field-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field-group input[type="number"] {
  -moz-appearance: textfield;
}

#loginBtn {
  width: 100%;
  height: var(--input-height);
  border: 0;
  border-radius: 6px;
  background: var(--button);
  color: #fff;
  font: 700 16px Georgia, "Times New Roman", serif;
  cursor: pointer;
  transition: background-color .2s, transform .1s;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

#loginBtn:hover {
  background: var(--button-hover);
}

#loginBtn:active {
  transform: scale(0.98);
}

#loginBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================
   MESSAGE CONTAINER - Right under submit button
   ============================================ */
#messageContainer {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 20px;
}

.form-message {
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: slideUp 0.3s ease-out;
  width: 100%;
  margin: 0;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #28a745;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #dc3545;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-nav {
  min-height: 48px;
  background: var(--footer-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 12px;
}

.footer-nav a,
.footer-nav .divider {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-nav .enroll {
  text-decoration: underline;
}

.footer-nav .divider {
  opacity: .7;
}

.fdic {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.fdic-logo {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

/* ============================================
   TABLET RESPONSIVE (768px and below)
   ============================================ */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .page-shell {
    max-width: 100%;
    padding: 5px 0;
  }

  .login-card {
    border-radius: 6px;
  }

  .brand-area {
    min-height: 80px;
    padding: 15px 15px;
  }

  .logo-image {
    max-height: 65px;
  }

  .form-area {
    padding: 15px 12px 25px 12px;
  }

  .login-form {
    max-width: 100%;
  }

  .field-group {
    margin-bottom: 12px;
  }

  .field-group label {
    font-size: 14px;
  }

  .field-group input,
  .field-group input[type="date"] {
    height: var(--input-height-mobile);
    font-size: 15px;
    padding: 8px 12px;
  }

  #loginBtn {
    height: var(--input-height-mobile);
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-nav {
    gap: 6px 10px;
    padding: 8px 10px;
    min-height: 44px;
  }

  .footer-nav a,
  .footer-nav .divider {
    font-size: 12px;
  }

  .fdic-logo {
    max-height: 50px;
  }

  .form-message {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* ============================================
   MOBILE RESPONSIVE (480px and below)
   ============================================ */
@media (max-width: 480px) {
  body {
    padding: 10px;
    background-image: none;
    background-color: #142f55;
    align-items: flex-start;
    padding-top: 20px;
  }

  body::before {
    display: none;
  }

  .page-shell {
    padding: 0;
  }

  .login-card {
    border-radius: 4px;
  }

  .brand-area {
    min-height: 60px;
    padding: 12px 10px;
  }

  .logo-image {
    max-height: 45px;
  }

  .form-area {
    padding: 12px 10px 20px 10px;
  }

  .login-form {
    padding: 0;
  }

  .field-group {
    margin-bottom: 10px;
  }

  .field-group label {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .field-group input,
  .field-group input[type="date"] {
    height: 44px;
    font-size: 14px;
    padding: 6px 10px;
    border-width: 1.5px;
    width: 100%;
    box-sizing: border-box;
  }

  .field-group input::placeholder {
    font-size: 12px;
  }

  .field-group:first-child input {
    border-color: #31a8db;
    box-shadow: 0 0 0 2px rgba(49,168,219,.25);
  }

  #loginBtn {
    height: 44px;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 8px 6px;
    min-height: 40px;
  }

  .footer-nav a,
  .footer-nav .divider {
    font-size: 10px;
  }

  .footer-nav .divider {
    display: inline;
  }

  .fdic {
    margin-top: 25px;
  }

  .fdic-logo {
    max-height: 35px;
  }

  #messageContainer {
    margin: 0;
  }

  .form-message {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
  }
}

/* ============================================
   SMALL MOBILE (380px and below)
   ============================================ */
@media (max-width: 380px) {
  body {
    padding: 5px;
    padding-top: 15px;
  }

  .brand-area {
    min-height: 50px;
    padding: 8px 8px;
  }

  .logo-image {
    max-height: 38px;
  }

  .form-area {
    padding: 10px 8px 15px 8px;
  }

  .field-group input,
  .field-group input[type="date"] {
    height: 40px;
    font-size: 13px;
    padding: 5px 8px;
  }

  #loginBtn {
    height: 40px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  .footer-nav a,
  .footer-nav .divider {
    font-size: 9px;
  }

  .footer-nav {
    gap: 3px 5px;
    padding: 6px 4px;
  }

  .fdic-logo {
    max-height: 30px;
  }

  .form-message {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ============================================
   LANDSCAPE MOBILE FIX
   ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
  body {
    padding: 10px 20px;
    align-items: center;
  }

  .page-shell {
    max-width: 500px;
  }

  .brand-area {
    min-height: 50px;
    padding: 8px 15px;
  }

  .logo-image {
    max-height: 35px;
  }

  .form-area {
    padding: 10px 15px 15px 15px;
  }

  .field-group {
    margin-bottom: 8px;
  }

  .field-group input,
  .field-group input[type="date"] {
    height: 36px;
    font-size: 13px;
    padding: 4px 10px;
  }

  .login-form {
    max-width: 380px;
  }

  #loginBtn {
    height: 36px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  .footer-nav {
    min-height: 32px;
    padding: 4px 10px;
  }

  .footer-nav a,
  .footer-nav .divider {
    font-size: 10px;
  }

  .fdic {
    margin-top: 15px;
  }

  .fdic-logo {
    max-height: 30px;
  }

  .form-message {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ============================================
   TOUCH DEVICE IMPROVEMENTS
   ============================================ */
@media (hover: none) {
  #loginBtn:hover {
    background: var(--button);
  }
  
  #loginBtn:active {
    background: var(--button-hover);
    transform: scale(0.97);
  }
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.field-group input:focus-visible,
.field-group input[type="date"]:focus-visible {
  outline: 3px solid #2ea6d9;
  outline-offset: 1px;
}

#loginBtn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.fdic img{
  margin-right: 10px;
}