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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #0052c2;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.fdic-banner {
  background: #f2f2f2;
  border-bottom: 1px solid #ddd;
  padding: 8px 16px;
  text-align: center;
  font-size: 11px;
  color: #444;
  line-height: 1.4;
}
.fdic-content {
  max-width: 600px;
  margin: 0 auto;
}
.fdic-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}
.fdic-detail strong {
  border: 1px solid #333;
  padding: 1px 4px;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.main-header {
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  position: relative;
}
.menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  position: absolute;
  left: 16px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 24px;
  width: auto;
}

main {
  flex: 1;
  width: 100%;
  padding: 0 20px;
  background: #f7f7f7;
}

.login-section {
  padding: 28px 0 20px;
  max-width: 480px;
  margin: 0 auto;
}
.login-section h1 {
  font-size: 26px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 22px;
  text-align: center;
  letter-spacing: -0.3px;
}

.login-card-wrapper {
  position: relative;
}

.card-top-border {
  display: flex;
  height: 6px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.border-red {
  flex: 2;
  background: #c8102e;
}
.border-blue {
  flex: 1;
  background: #012169;
}

.login-card {
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  border: 1px solid #e0e0e0;
  border-top: none;
}

.login-form {
  padding: 22px 20px 28px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #767676;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: #0052c2;
  box-shadow: 0 0 0 2px rgba(0,82,194,0.15);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  margin-top: 4px;
}
.form-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #012169;
  cursor: pointer;
  flex-shrink: 0;
}
.form-check label {
  font-size: 16px;
  cursor: pointer;
  color: #333;
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: #012169;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-login:hover {
  background: #001a52;
}

.login-links {
  text-align: center;
  margin-top: 18px;
}
.login-links > a {
  font-size: 15px;
  font-weight: 500;
  color: #0052c2;
  display: block;
  margin-bottom: 8px;
}
.login-links-row {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.login-links-row a {
  font-size: 15px;
  font-weight: 500;
  color: #0052c2;
}

.app-section {
  text-align: center;
  padding: 20px 0 40px;
  max-width: 480px;
  margin: 0 auto;
}
.app-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.app-section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
}
.btn-app {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  background: #fff;
  color: #012169;
  border: 2px solid #012169;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-app:hover {
  background: #012169;
  color: #fff;
}

.main-footer {
  background: #012169;
  color: #fff;
  padding: 40px 16px;
}
.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  line-height: 2;
  margin-bottom: 28px;
}
.footer-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-links .divider {
  color: rgba(255,255,255,0.5);
  margin: 0 6px;
  font-size: 13px;
}

.footer-social {
  margin-bottom: 28px;
}
.footer-social h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  transition: opacity 0.2s;
}
.social-icons a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.footer-legal {
  font-size: 14px;
  line-height: 1.6;
}
.footer-legal p {
  margin-bottom: 8px;
}
.footer-legal a {
  color: #fff;
  text-decoration: underline;
}
.footer-legal .copyright {
  margin-top: 16px;
  margin-bottom: 16px;
}
.footer-legal i.fa-home {
  font-size: 16px;
  margin-left: 4px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #012169;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-content p {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.loading-sub {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #888 !important;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 2px solid #d31a1a;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 0 0 8px 0;
}

.error-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.error-title {
  display: block;
  color: #d31a1a;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-error p {
  color: #333;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 4px 0;
}

.login-error p:last-child {
  margin-bottom: 0;
}

.login-error a {
  color: #0050b3;
  text-decoration: underline;
  font-size: 13px;
}

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-popup {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.cookie-icon {
  font-size: 40px;
  color: #d4a017;
  margin-bottom: 16px;
}

.cookie-popup h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.cookie-popup p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.cookie-small {
  font-size: 12px !important;
  color: #888 !important;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.cookie-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid #012169;
}

.cookie-reject {
  background: #fff;
  color: #012169;
}

.cookie-reject:hover {
  background: #f0f0f0;
}

.cookie-accept {
  background: #012169;
  color: #fff;
  border-color: #012169;
}

.cookie-accept:hover {
  background: #001a52;
}

@media (min-width: 768px) {
  .fdic-banner {
    padding: 8px 24px;
    font-size: 12px;
  }
  .header-inner {
    padding: 16px 32px;
  }
  .logo-img {
    height: 30px;
  }
  main {
    padding: 0 32px;
  }
  .login-section {
    padding: 48px 0 32px;
    max-width: 520px;
  }
  .login-section h1 {
    font-size: 30px;
  }
  .login-form {
    padding: 28px 32px 36px;
  }
  .app-section {
    padding: 40px 0 56px;
    max-width: 520px;
  }
  .app-section h2 {
    font-size: 26px;
  }
  .footer-links a {
    font-size: 15px;
  }
  .social-icons {
    gap: 28px;
  }
  .social-icons a {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  .login-section {
    max-width: 560px;
  }
  .login-section h1 {
    font-size: 34px;
  }
  .login-form {
    padding: 32px 40px 42px;
  }
  .app-section {
    max-width: 560px;
  }
  .footer-inner {
    max-width: 900px;
  }
  .footer-links .divider {
    margin: 0 8px;
  }
}
