@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --wf-red: #d71e28;
    --wf-yellow: #ffdf00;
    --wf-bg-image: url('https://static.wellsfargo.com/assets/images/contextual/banner/wells_fargo_background_field_sunset.jpg');
    --wf-dark: #1a1818;
    --wf-gray: #665e5c;
    --wf-border: #9c9191;
    --wf-footer-bg: #f4f0ed;
    --wf-focus: #6048ad;
    --wf-focus-shadow: 0 0 0 3px #6048ad, 7px 7px 12px 0 rgba(151, 71, 255, 0.3), -7px -7px 12px 0 rgba(255, 39, 182, 0.2);
}

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

body {
    font-family: "Wells Fargo Sans", "Inter", Verdana, Arial, sans-serif;
    background-color: #f7f3f0;
    color: var(--wf-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--wf-bg-image);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

header {
    background-color: #d71e28;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
    box-shadow: rgb(255, 205, 65) 0px -4px 0px 0px inset;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container svg {
    height: 23px;
    width: auto;
}

.menu-icon {
    color: white;
    font-size: 28px;
    cursor: pointer;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px 20px 54px;
}

.login-card {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(59, 51, 49, 0.15);
    width: 100%;
    max-width: 440px;
    text-align: left;
}

h1 {
    font-family: "Wells Fargo Serif", Georgia, serif;
    font-size: 34px;
    font-weight: 300;
    margin-bottom: 32px;
    color: black;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
    color: var(--wf-gray);
}

.input-wrapper {
    position: relative;
    border: 1px solid var(--wf-border);
    border-radius: 18px;
    height: 60px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:focus-within {
    border-color: var(--wf-focus);
    box-shadow: var(--wf-focus-shadow);
}

.input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 19px;
    color: var(--wf-dark);
    height: 100%;
}

.password-toggle {
    cursor: pointer;
    color: var(--wf-red);
    font-size: 16px;
    font-weight: 600;
    padding-left: 10px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 17px;
    color: var(--wf-dark);
}

.checkbox-row input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn-sign-on {
    width: 176px;
    height: 44px;
    background-color: #e2dede;
    color: #b5adad;
    border: none;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s ease-in-out;
}

.btn-sign-on.active {
    background-color: var(--wf-red);
    color: white;
    cursor: pointer;
}

.btn-passkey {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: var(--wf-red);
    border: 1px solid var(--wf-red);
    border-radius: 24px;
    margin-top: 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 32px;
    color: var(--wf-red);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
}

footer {
    padding: 32px 24px 24px;
    background: var(--wf-footer-bg);
    color: var(--wf-gray);
    font-size: 13px;
    line-height: 1.5;
}

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

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--wf-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error State */
#error-container {
    display: none;
}

.error-card {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(59, 51, 49, 0.15);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.error-title {
    color: var(--wf-red);
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 600;
}

.error-msg {
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-call {
    background-color: var(--wf-red);
    color: white;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 19px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(215, 30, 40, 0.2);
}

.phone-number {
    display: block;
    font-size: 28px;
    font-weight: 600;
    margin: 24px 0;
    color: var(--wf-dark);
}

@media (max-width: 480px) {
    main {
        padding: 0;
    }

    .login-card,
    .error-card {
        padding: 32px 24px;
        border-radius: 0;
        box-shadow: none;
        max-width: none;
        height: 100%;
    }
}