/**
 * GestDoc - Estilos página de login
 * Versión: 1.0.0
 */

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

body.gestdoc-login-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================= */
/* CONTENEDOR PRINCIPAL                          */
/* ============================================= */

.gestdoc-login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ============================================= */
/* PANEL IZQUIERDO - IMAGEN                      */
/* ============================================= */

.gestdoc-login-left {
    flex: 0 0 60%;
    background: linear-gradient(135deg, #1a4a7a 0%, #2271b1 50%, #135e96 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.gestdoc-login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.gestdoc-login-left-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
	top: 0;
	left: 0;
    object-fit: cover;
    border-radius: 0px;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.gestdoc-login-left-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.gestdoc-login-left-title {
    display: none;
}

.gestdoc-login-left-subtitle {
    display: none;
}

/* Icono por defecto si no hay imagen */
.gestdoc-login-left-icon {
    font-size: 100px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================= */
/* PANEL DERECHO - FORMULARIO                    */
/* ============================================= */

.gestdoc-login-right {
    flex: 0 0 40%;
    width: 40%;
    min-width: unset;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 200px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.08);
}

.gestdoc-login-form-header {
    text-align: center;
    margin-bottom: 35px;
    width: 100%;
}

.gestdoc-login-form-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 8px;
    border: none;
}

.gestdoc-login-form-header p {
    font-size: 14px;
    color: #646970;
    line-height: 1.5;
}

/* ============================================= */
/* TABS LOGIN / MAGIC LINK                       */
/* ============================================= */

.gestdoc-login-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #e2e4e7;
    margin-bottom: 30px;
}

.gestdoc-login-tab {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #646970;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.gestdoc-login-tab:hover {
    background: #e7f1ff;
    color: #135e96;
    border-radius: 6px 6px 0 0;
}

.gestdoc-login-tab.active {
    background: #e7f1ff !important;
    color: #135e96;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

/* ============================================= */
/* PANELES DE CONTENIDO                          */
/* ============================================= */

.gestdoc-login-panel {
    display: none;
    width: 100%;
}

.gestdoc-login-panel.active {
    display: block;
}

/* ============================================= */
/* CAMPOS DEL FORMULARIO                         */
/* ============================================= */

.gestdoc-login-field {
    margin-bottom: 20px;
    width: 100%;
}

.gestdoc-login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.gestdoc-login-field input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    color: #1d2327;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    font-family: inherit;
}

.gestdoc-login-field input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.12);
    background: #ffffff;
}

.gestdoc-login-field input::placeholder {
    color: #aaa;
}

/* ============================================= */
/* RECORDAR / OLVIDÉ CONTRASEÑA                  */
/* ============================================= */

.gestdoc-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.gestdoc-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #646970;
    cursor: pointer;
}

.gestdoc-login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2271b1;
    cursor: pointer;
}

.gestdoc-login-forgot {
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
    transition: color 0.2s;
}

.gestdoc-login-forgot:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ============================================= */
/* BOTONES                                       */
/* ============================================= */

.gestdoc-login-btn {
    width: 100%;
    padding: 13px 20px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.gestdoc-login-btn:hover {
    background: #135e96;
}

.gestdoc-login-btn:active {
    transform: scale(0.99);
}

.gestdoc-login-btn:disabled {
    background: #c3c4c7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================= */
/* MENSAJES                                      */
/* ============================================= */

.gestdoc-login-msg {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    width: 100%;
    display: none;
    line-height: 1.5;
}

.gestdoc-login-msg.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
    display: block;
}

.gestdoc-login-msg.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
    display: block;
}

.gestdoc-login-msg.info {
    background: #e7f1ff;
    color: #004085;
    border-left: 4px solid #2271b1;
    display: block;
}

/* ============================================= */
/* SEPARADOR                                     */
/* ============================================= */

.gestdoc-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
    color: #aaa;
    font-size: 12px;
}

.gestdoc-login-divider::before,
.gestdoc-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e4e7;
}

/* ============================================= */
/* MAGIC LINK - INFO                             */
/* ============================================= */

.gestdoc-magic-info {
    background: #f0f6ff;
    border: 1px solid #c3d9f7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #2c5282;
    line-height: 1.6;
    width: 100%;
}

.gestdoc-magic-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

/* ============================================= */
/* SPINNER                                       */
/* ============================================= */

.gestdoc-login-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    border-top-color: white;
    animation: gestdoc-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes gestdoc-spin {
    to { transform: rotate(360deg); }
}

/* ============================================= */
/* FOOTER DEL FORMULARIO                         */
/* ============================================= */

.gestdoc-login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    width: 100%;
}

/* ============================================= */
/* RESPONSIVE - MÓVIL                            */
/* ============================================= */

@media (max-width: 1800px) {
    .gestdoc-login-right {
        padding: 100px 100px;
    }
}


@media (max-width: 1600px) {
    .gestdoc-login-right {
        padding: 60px 80px;
    }
}

@media (max-width: 1100px) {
    .gestdoc-login-right {
        padding: 40px 40px;
    }
}

/* Tablet: el formulario puede superar la altura de pantalla → permitir scroll */
@media (max-width: 1100px) and (max-height: 900px) {
    .gestdoc-login-right {
        justify-content: flex-start;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 900px) {
    .gestdoc-login-left {
        display: none;
    }

    .gestdoc-login-right {
        width: 100%;
        min-width: 100%;
        min-height: 100vh;
        padding: 40px 30px;
        box-shadow: none;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    body.gestdoc-login-page {
        overflow-x: hidden !important;
    }

    .gestdoc-login-right {
        padding: 30px 20px;
    }

    .gestdoc-login-form-header h1 {
        font-size: 22px;
    }

    .gestdoc-login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* Ocultar header y footer de GeneratePress en la página de login */
.gestdoc-login-page #masthead,
.gestdoc-login-page .site-footer,
.gestdoc-login-page .site-info,
.gestdoc-login-page .generate-back-to-top {
    display: none !important;
}

.gestdoc-login-page #page,
.gestdoc-login-page #content,
.gestdoc-login-page #primary,
.gestdoc-login-page #main,
.gestdoc-login-page .content-area,
.gestdoc-login-page .inside-article,
.gestdoc-login-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
    max-width: 100% !important;
    width: 100% !important;
}

.gestdoc-login-page .gestdoc-login-wrapper {
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.gestdoc-login-form-logo {
    display: block;
    max-width: 350px;
    height: auto;
    margin: 0 auto 20px auto;
}