* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--app-font-family, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #fff;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
}

.image-section {
    flex: 0 0 62.5%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    overflow: hidden;
}

.image-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--app-color-primary, #2563eb) 40%, transparent) 0%, color-mix(in srgb, var(--app-color-primary-dark, #1d4ed8) 50%, transparent) 100%);
}

.image-content {
    position: relative;
    z-index: 1;
    color: white;
}

.login-section {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 2rem;
    position: relative;
    z-index: 1;
    margin-left: -4rem;
    border-radius: 22px 0 0 22px;
    box-shadow:
        -32px 0 80px rgba(15, 23, 42, 0.58),
        -12px 0 32px rgba(15, 23, 42, 0.38),
        -4px 0 10px rgba(15, 23, 42, 0.22);
}

/* Borde biselado del panel para dar sensación de profundidad. */
.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 18px;
    z-index: 2;
    pointer-events: none;
    border-radius: 22px 0 0 22px;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.16) 0%,
        rgba(15, 23, 42, 0.05) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    box-shadow: inset 2px 0 4px rgba(255, 255, 255, 0.95);
}

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

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    color: var(--app-color-logo, #133275);
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo i {
    font-size: 2.2rem;
}

.login-form h2 {
    color: var(--app-text, #333);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--app-text-secondary, #555);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background-color: #fff;
    border: 1px solid #d6d9e0;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--app-color-primary, #2563eb);
    box-shadow:
        0 0 0 3px rgba(33, 36, 228, 0.15),
        inset 0 2px 4px rgba(15, 23, 42, 0.08);
    outline: none;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 42px;
    color: var(--app-text-secondary, #777);
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--app-color-button, #2124e4) 0%, var(--app-color-button, #2124e4) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    box-shadow:
        0 10px 20px -6px rgba(33, 36, 228, 0.55),
        0 4px 8px rgba(15, 23, 42, 0.18);
}

.login-button:hover {
    background: linear-gradient(135deg, var(--app-color-button-hover, #0d187a) 0%, var(--app-color-button-hover, #0d187a) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 14px 26px -8px rgba(33, 36, 228, 0.6),
        0 6px 10px rgba(15, 23, 42, 0.2);
}

.login-button:active {
    transform: translateY(1px);
    box-shadow:
        0 4px 10px -4px rgba(33, 36, 228, 0.45),
        0 2px 4px rgba(15, 23, 42, 0.15);
}

.login-alt-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 1rem;
    font-size: 0.92rem;
}

.login-alt-actions a {
    color: var(--app-color-logo, #133275);
    font-weight: 500;
    text-decoration: none;
}

.login-alt-actions a:hover {
    text-decoration: underline;
}

.login-alt-sep {
    color: #9ca3af;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--app-text-secondary, #6b7280);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--app-border, #e5e7eb);
}

.gmail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 52px;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #d6d9e0;
    border-radius: 8px;
    color: var(--app-text, #1a1a2e);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.gmail-button i {
    color: #4285f4;
    font-size: 1.15rem;
}

.gmail-button:hover {
    background: #f8fafc;
    border-color: #c3c8d2;
    color: var(--app-text, #1a1a2e);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.gmail-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    color: var(--app-text-secondary, #666);
    font-size: 0.9rem;
    border-top: 1px solid var(--app-border, #eee);
}

footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer i {
    color: var(--app-color-primary, #2563eb);
}

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

    .image-section {
        display: none;
    }

    .login-section {
        flex: 1;
        padding: 1.5rem;
        padding-bottom: 4rem;
        margin-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-section::before {
        display: none;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .login-form h2 {
        font-size: 1.5rem;
    }

    footer {
        position: fixed;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 1.5rem 1rem;
        padding-bottom: 4rem;
    }

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

    .logo h1 {
        font-size: 1.75rem;
    }

    .login-form h2 {
        font-size: 1.35rem;
    }

    .form-group input {
        padding: 14px 14px 14px 42px;
        font-size: 16px;
    }

    .login-button {
        padding: 14px;
    }
}

@media (max-height: 600px) {
    .login-section {
        padding-top: 1rem;
        padding-bottom: 3.5rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

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

    .form-group input {
        padding: 10px 10px 10px 38px;
    }
}


