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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    background-size: 100% 100%;
    z-index: 0;
    pointer-events: none;
}

/* Header */
.login-header {
    background-color: #2c2c2c;
    color: #fff;
    position: relative;
    z-index: 1;
}

.header-top {
    padding: 10px 0;
}

.fdic-notice {
    font-size: 11px;
    text-align: left;
    padding: 0 40px;
    color: #fff;
    opacity: 0.9;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-top: 2px solid #d71e2b;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.header-link a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

.header-link a:hover {
    text-decoration: underline;
}

/* Main Content */
.login-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 500px;
}

.back-link {
    display: inline-block;
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.back-link:hover {
    text-decoration: underline;
}

.login-title {
    font-size: 36px;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.login-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-instruction {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}

.form-prompt {
    font-size: 14px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5dbe2;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #d71e2b;
    box-shadow: 0 0 0 3px rgba(215, 30, 43, 0.12);
}

.form-group input::placeholder {
    color: #999;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
}

.show-password {
    background: #f3f4f6;
    border: 1px solid #d5dbe2;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    margin-left: 10px;
    border-radius: 6px;
}

.show-password:hover {
    background: #e9ecef;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sign-on-btn {
    width: 100%;
    background-color: #d71e2b;
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.sign-on-btn:hover {
    background-color: #b81a25;
    transform: translateY(-1px);
}

.sign-on-btn:active {
    transform: translateY(0);
}

.login-footer-links {
    margin-top: 20px;
    text-align: center;
}

.login-footer-links {
    text-align: center;
}

.login-footer-links a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

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

.login-footer-links p {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* Footer */
.login-footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.vantage-branding {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #fff;
    font-family: Georgia, serif;
}

.vantage-branding::first-letter {
    font-size: 24px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    display: inline-block;
    width: fit-content;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.external-icon {
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.7;
}

.copyright {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

/* Feedback Button */
.feedback-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    background-color: #6b46c1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 1000;
    transition: background-color 0.3s;
}

.feedback-btn:hover {
    background-color: #553c9a;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px;
    }

    .fdic-notice {
        padding: 0 20px;
        font-size: 10px;
    }

    .logo {
        font-size: 24px;
    }

    .login-container {
        padding: 0 20px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-footer {
        padding: 30px 20px;
    }

    .feedback-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 20px;
    }
}

/* OTP Verification Styles */
.otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.otp-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 15px;
}

.otp-instruction {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.otp-instruction span {
    font-weight: 600;
    color: #d71e2b;
}

.otp-subinstruction {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.otp-footer {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resend-link {
    background: none;
    border: none;
    color: #d71e2b;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    transition: color 0.3s;
}

.resend-link:hover {
    color: #b81a25;
}

.resend-link:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

#otp_code {
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.auth-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid transparent;
}

.auth-message.success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.auth-message.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.auth-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-loading-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 26px;
    min-width: 230px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.auth-spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 10px;
    border: 3px solid #e5e7eb;
    border-top-color: #d71e2b;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

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

