.login-container {
    min-height: 100vh;
}

.login-image {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)),
        url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fHRlY2h8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=800&q=60') center/cover;
    color: white;
    position: relative;
}

.login-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.login-form {
    padding: 4rem;
    background: white;
}

.form-control-custom {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-microsoft {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #5e5e5e;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-microsoft:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .login-image {
        height: 400px;
    }

    .login-form {
        padding: 2rem;
    }
}

/* ==========================================================================
   NEW SPLIT-SCREEN SHOWCASE & CREDENTIALS QUERY STYLES (For consultar_cuenta.html)
   ========================================================================== */
body.consultar-body {
    background-color: #0b1329;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-gradient-start: #0b1329;
    --bg-gradient-mid: #101f42;
    --bg-gradient-end: #1e3a8a;
    --text-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-muted-light: #94a3b8;
    --card-glass-bg: rgba(255, 255, 255, 0.04);
    --card-glass-border: rgba(255, 255, 255, 0.08);
    --card-glass-hover-bg: rgba(255, 255, 255, 0.08);
    --card-glass-hover-border: rgba(255, 255, 255, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout Split-Screen */
.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 30% 30%, var(--bg-gradient-mid) 0%, var(--bg-gradient-start) 90%);
    position: relative;
    overflow: hidden;
}

/* Columna Derecha - Beneficios M365 */
.showcase-column {
    background: transparent;
    position: relative;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
}



.showcase-content {
    position: relative;
    z-index: 10;
    margin: 2.5rem 0;
}

.showcase-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid de Beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.benefit-card:last-child {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card:last-child {
        grid-column: span 1;
    }
}

.benefit-card {
    background: var(--card-glass-bg);
    border: 1px solid var(--card-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: var(--card-glass-hover-bg);
    border-color: var(--card-glass-hover-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(37, 99, 235, 0.1);
}

.benefit-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #38bdf8;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.benefit-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.benefit-details p {
    font-size: 0.875rem;
    color: var(--text-muted-light);
    margin: 0;
    line-height: 1.4;
}

.showcase-footer {
    grid-column: span 2;
    position: relative;
    z-index: 10;
    font-size: 0.8rem;
    color: var(--text-muted-light);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 3.5rem;
}

/* Columna Derecha - Login */
.login-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem;
    background-color: transparent;
}

.login-card-container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background-color: white;
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid #e2e8f0;
}

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

.logo-container img {
    height: 80px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-container img:hover {
    transform: scale(1.03);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Botón Microsoft Premium */
.btn-microsoft-premium {
    background-color: white;
    color: #3c4043;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.btn-microsoft-premium img {
    height: 20px;
    width: 20px;
}

.btn-microsoft-premium:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

/* Divisor */
.login-divider {
    position: relative;
    text-align: center;
    margin: 2.5rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.login-divider span {
    background-color: white;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ayuda / Consulta */
.help-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.help-container:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.help-container p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.btn-consultar-trigger {
    background-color: transparent;
    border: 2px dashed #cbd5e1;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.btn-consultar-trigger:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-color);
    border-style: solid;
}

/* Estilos de Campos de Formulario Personalizados (para el modal) */
.form-group-custom {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group-custom label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.input-icon-group {
    position: relative;
}

.input-icon-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.form-control-custom {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    width: 100%;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control-custom:focus+i {
    color: var(--primary-color);
}

/* Personalización del Modal */
.modal-content-custom {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header-custom {
    background: linear-gradient(135deg, var(--bg-gradient-mid) 0%, var(--bg-gradient-start) 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    position: relative;
}

.modal-header-custom .modal-title {
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header-custom .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header-custom .btn-close-white:hover {
    opacity: 1;
}

.modal-body-custom {
    padding: 2.25rem 2rem;
}

/* Contenedores de vistas del modal */
.modal-view {
    transition: var(--transition-smooth);
}

.modal-view.d-none {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
}

/* Vista de Carga */
.loading-container {
    text-align: center;
    padding: 2rem 0;
}

.spinner-custom {
    width: 3.5rem;
    height: 3.5rem;
    border-width: 0.25em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Vista de Resultados */
.result-success-card {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-success-icon {
    width: 56px;
    height: 56px;
    background-color: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
}

.result-email-box {
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1.25rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    word-break: break-all;
}

.btn-copy-email {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.btn-copy-email:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.instruction-note {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
    background-color: #f8fafc;
    border-left: 4px solid #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 992px) {
    .login-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        width: 100vw;
    }

    .showcase-column {
        padding: 3rem 2rem;
        min-height: auto;
        flex: 1 0 auto;
    }

    .showcase-title {
        font-size: 1.85rem;
        margin-bottom: 1.5rem;
    }

    .login-column {
        padding: 3rem 2rem;
        flex: 1 0 auto;
    }

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

    .showcase-footer {
        grid-column: span 1;
        padding: 1.5rem 2rem;
        margin-top: auto;
    }
}

@media (max-width: 576px) {
    .showcase-column {
        padding: 2.5rem 0;
        width: 100%;
    }

    .login-wrapper {
        background: radial-gradient(circle at 10% 20%, var(--bg-gradient-mid) 0%, var(--bg-gradient-start) 90%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        min-height: 100vh;
    }

    .login-column {
        background-color: transparent;
        padding: 0;
        width: 100%;
    }

    .login-card-container {
        background-color: white;
        padding: 2.25rem 1.75rem;
        border-radius: 1.5rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
        border: none;
    }

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