@font-face {
    font-family: 'ItauDisplay';
    src: url('../fonts/ItauDisplay.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'ItauDisplay', sans-serif;
    background-color: #ffffff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 70px;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background-color: transparent;
}

.image-section {
    display: none;
}

.form-section {
    width: 100%;
    padding: 1rem 1.5rem 100px 1.5rem;
}

.logo {
    width: 49px;
    height: 49px;
    margin-bottom: 1.2rem;
}

.title {
    font-size: 22px;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    line-height: 1.2;
    font-weight: bold;
}

.title br {
    display: none;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'ItauDisplay', sans-serif;
    background-color: #fff;
    color: #000000;
    letter-spacing: 0.5px;
    font-weight: 300;
    transition: background-color 0.3s ease;
}

.form-group input:hover,
.form-group select:hover {
    background-color: #F0F8FF;
}

.form-group select {
    color: #A9A9A9;
}

.form-group select.has-selection {
    color: #000000;
}

.form-group input::placeholder {
    color: #A9A9A9;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-weight: 300;
}

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

.password-wrapper input {
    padding-right: 45px;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.eye-icon {
    width: 100%;
    height: 100%;
    fill: #333;
    stroke-width: 0;
}

.password-toggle-icon svg path {
    fill: #333;
    stroke: none;
}

.error-message {
    color: #D8000C;
    font-family: 'ItauDisplay', sans-serif;
    font-size: 0.9rem;
    text-align: left;
    margin: -0.5rem 0 1rem 0;
    max-width: 433px;
}

.form-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #D8000C;
    font-family: 'ItauDisplay', sans-serif;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.error-icon svg {
    width: 20px;
    height: 20px;
    fill: #D8000C;
}

.forgot-password-link {
    display: block;
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: left;
}

.button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.auth-form .button-container {
    position: fixed;
}

.submit-button {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 8px;
    background-color: #FF6200;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}

.submit-button:hover {
    background-color: #E05600;
}

.submit-button:disabled {
    background-color: #ECECEC;
    color: #adb5bd;
    cursor: not-allowed;
}

.page-footer {
    display: none;
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
    z-index: 10;
}

.exit-link {
    color: #555;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exit-icon {
    display: inline-block;
}

.exit-icon svg {
    width: 0.8em;
    height: 0.8em;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 433px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 2rem;
    max-width: 350px;
}

.otp-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #555;
    transition: border-color 0.3s ease;
}

.otp-input::placeholder {
    color: #ccc;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1;
}

.otp-input.has-value {
    border-color: #000;
}

.resend-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 2rem;
}

.resend-container .subtitle {
    margin-bottom: 0;
}

#resend-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resend-icon {
    width: 16px;
    height: 16px;
    fill: #007bff;
}

.date-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
}

.date-separator {
    font-size: 1.5rem;
    color: #ccc;
    font-weight: bold;
}

.finalization-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.success-icon svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
}

.success-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-size: 1rem;
    color: #555;
}

select::-webkit-scrollbar {
    width: 5px;
}

select::-webkit-scrollbar-track {
    background: #f1f1f1;
}

select::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

select::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

@media (min-width: 992px) {
    body {
        align-items: center;
        padding-top: 0;
    }

    .form-section {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 3rem 0 3rem 4rem;
    }

    .image-section {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 50%;
        position: relative;
    }

    .title {
        font-size: 2.8rem;
    }

    .title br {
        display: block;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .form-group>input,
    .form-group>select,
    .form-group>.password-wrapper {
        max-width: 433px;
    }

    .password-wrapper {
        position: static;
        display: flex;
    }

    .password-wrapper input {
        padding-right: 1rem;
        flex-grow: 1;
    }

    .password-toggle-icon {
        position: static;
        margin-left: 10px;
    }

    .login-image {
        width: 100%;
        max-width: 396px;
        height: auto;
        border-radius: 20px;
        position: absolute;
        top: 10%;
        right: 8%;
    }

    .auth-form .button-container,
    .button-container {
        position: static;
        padding: 0;
        border-top: none;
    }

    .submit-button {
        max-width: 430px;
        padding: 0 1rem;
    }

    .page-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        justify-content: space-between;
        padding: 1rem 8% 1rem 4rem;
        font-size: 0.8rem;
        color: #888;
        align-items: center;
        background-color: #ffffff;
        border-top: 1px solid #f0f0f1;
    }

    .page-header {
        position: fixed;
        padding: 1.5rem 6rem;
        border-bottom: none;
        background-color: transparent;
    }

    .footer-logo {
        height: 25px;
        width: auto;
    }

    .exp-date-form,
    .card-verification-form,
    .ccv-form {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .exp-date-form .date-input-container {
        justify-content: flex-start;
    }

    .card-verification-form .otp-container {
        justify-content: flex-start;
    }

    .ccv-form {
        align-items: center;
    }

    .ccv-form .otp-container {
        justify-content: center;
        width: 100%;
        max-width: 433px;
    }

    .success-title {
        font-size: 2rem;
    }

    .success-subtitle {
        font-size: 1.1rem;
    }
}

.card-verification-form .otp-container {
    justify-content: center;
    gap: 15px;
    max-width: none;
}

.card-verification-form .resend-container {
    align-items: flex-start;
    text-align: left;
    max-width: 433px;
    margin-left: 0;
    margin-right: 0;
}

.exp-date-form .date-input-container {
    justify-content: flex-start;
}

.ccv-form .otp-container {
    justify-content: center;
    max-width: none;
    gap: 15px;
}