/* ============================================================
   CONALEP Quintana Roo — Login
   ============================================================ */

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

:root {
    --verde:       #2e8b57;
    --verde-dark:  #236b43;
    --verde-light: #e1f5ee;
    --gris-texto:  #4a5568;
    --gris-borde:  #d1d5db;
    --radio:       10px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f3f4f6;
}

/* ---- Contenedor principal ---- */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---- Panel izquierdo (verde) ---- */
.login-panel-left {
    width: 340px;
    flex-shrink: 0;
    background: var(--verde);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    width: 100%;
}

/* ---- Logo panel izquierdo ---- */
.login-logo-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.login-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.login-footer-text {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin: 0;
}

/* ---- Panel derecho (formulario) ---- */
.login-panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #fff;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
}

.login-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.login-desc {
    font-size: 14px;
    color: var(--gris-texto);
    margin-bottom: 1.75rem;
}

/* ---- Inputs ---- */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gris-texto);
    margin-bottom: 6px;
}

.form-control {
    height: 44px;
    border: 1.5px solid var(--gris-borde);
    border-radius: var(--radio);
    font-size: 14px;
    color: #1a202c;
    transition: border-color 0.2s, box-shadow 0.2s;
    padding: 0 14px;
}

.form-control:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(46,139,87,0.15);
    outline: none;
}

.input-group .form-control {
    border-right: none;
    border-radius: var(--radio) 0 0 var(--radio);
}

.input-group .btn-outline-secondary {
    border: 1.5px solid var(--gris-borde);
    border-left: none;
    border-radius: 0 var(--radio) var(--radio) 0;
    color: #6b7280;
    background: #fff;
    padding: 0 14px;
    transition: background 0.15s, color 0.15s;
}

.input-group .btn-outline-secondary:hover {
    background: var(--verde-light);
    color: var(--verde);
    border-color: var(--gris-borde);
}

.input-group:focus-within .btn-outline-secondary {
    border-color: var(--verde);
}

/* ---- Botón principal ---- */
.btn-login {
    height: 46px;
    background: var(--verde);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radio);
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.btn-login:hover:not(:disabled) { background: var(--verde-dark); }
.btn-login:active:not(:disabled) { transform: scale(0.98); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; }

/* ---- Logo móvil ---- */
.login-logo-mobile {
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.login-logo-mobile-img {
    width: 36px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    background: var(--verde);
    padding: 5px;
    border-radius: 6px;
}

.login-logo-mobile span {
    font-size: 14px;
    font-weight: 600;
    color: var(--verde);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .login-panel-right {
        padding: 2rem 1.25rem;
    }
}