:root {
    --bbva-navy: #072146;
    --bbva-core-blue: #004481;
    --bbva-medium-blue: #1973B8;
    --bbva-light-blue: #D4EDFC;
    --bbva-gray-bg: #F4F4F4;
    --bbva-white: #FFFFFF;
    --bbva-text: #121212;
    --bbva-text-secondary: #666666;
    --bbva-border: #D3D3D3;
}

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

body {
    background-color: #F8F9FB;
    color: var(--bbva-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Benton Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    background-color: var(--bbva-white);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left img {
    height: 22px;
}

.header-left span {
    color: var(--bbva-navy);
    font-size: 14px;
    font-weight: 500;
}

.header-right .close-btn {
    background: none;
    border: 1px solid #E9E9E9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--bbva-core-blue);
    transition: all 0.2s;
}

/* Main Container */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    align-items: flex-start;
}

/* Login Card */
.login-card {
    background: var(--bbva-white);
    padding: 10px 0;
    flex: 2;
    max-width: 500px;
}

.login-card h1 {
    font-family: 'Tiempos Headline', serif;
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--bbva-navy);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #D3D3D3;
    border-radius: 8px;
    padding: 12px 18px 8px 18px;
    height: 60px;
}

.form-group.active {
    border-color: var(--bbva-core-blue);
}

.form-group label {
    font-size: 11px;
    color: var(--bbva-text-secondary);
    display: block;
    margin-bottom: 2px;
}

.form-group input, .custom-dropdown {
    width: 100%;
    border: none;
    font-size: 16px;
    color: var(--bbva-navy);
    background: transparent;
    outline: none;
    padding: 0;
    font-family: inherit;
}

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.dropdown-selected {
    height: 30px;
    display: flex;
    align-items: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23004481' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 25px;
    font-weight: 500;
}

.dropdown-options {
    display: none;
    position: absolute;
    top: -12px;
    left: -18px;
    width: calc(100% + 36px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    overflow: hidden;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.option {
    padding: 15px 20px;
    background-color: #F8F9FA;
    border-bottom: 2px solid white;
    color: var(--bbva-core-blue);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.option:last-child {
    border-bottom: none;
}

.option.selected {
    background-color: var(--bbva-core-blue);
    color: white;
}

.option:hover:not(.selected) {
    background-color: #E9EFCF; /* A light hint of color or just lighter gray */
    background-color: #F1F4F7;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--bbva-core-blue);
}

/* Checkbox Gray Box */
.checkbox-container {
    background-color: #F8F9FA;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: inline-block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--bbva-core-blue);
    cursor: pointer;
}

.checkbox-group input {
    width: 32px;
    height: 32px;
    border: 1px solid #D3D3D3;
    border-radius: 8px;
    appearance: none;
    background: white;
    position: relative;
    cursor: pointer;
}

.checkbox-group input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bbva-core-blue);
    font-size: 20px;
}

.checkbox-group span {
    color: #666;
    font-weight: 500;
}

.teclado-virtual {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bbva-core-blue);
    font-size: 15px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 35px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 35px;
}

.btn-ingresar {
    background-color: #E9E9E9;
    color: #BDBDBD;
    border: none;
    padding: 16px 55px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: default;
}

.btn-ingresar.active {
    background-color: var(--bbva-navy);
    color: white;
    cursor: pointer;
}

.link-recuperar {
    color: var(--bbva-core-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* Sidebar Info */
.sidebar-info {
    flex: 1;
    max-width: 360px;
}

.info-box {
    background-color: #E2F1FC;
    padding: 24px;
    border-radius: 12px;
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--bbva-navy);
}

.info-box p {
    font-size: 13.5px;
    color: #121212;
    line-height: 1.5;
    margin-bottom: 15px;
}

.info-box a {
    color: var(--bbva-core-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* Page Footer Link */
.footer-link-section {
    text-align: center;
    padding: 50px 20px;
    font-size: 13.5px;
    color: var(--bbva-text-secondary);
    background-color: #F8F9FB;
}

.footer-link-section a {
    color: var(--bbva-core-blue);
    text-decoration: none;
    font-weight: 700;
}

/* Dark Blue Footer */
.dark-footer {
    background-color: var(--bbva-navy);
    padding: 60px 40px;
    color: white;
}

.social-icon {
    width: 80px;
    height: 80px;
    border: 3px solid #5BBEFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 40px;
    height: 40px;
    fill: #5BBEFF;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
}
