/* ---------- Variables ---------- */
:root {
    --green-dark:   #1a5c45;
    --green-mid:    #1e7a4f;
    --green-bright: #2db85a;
    --green-light:  #e8f5ee;
    --text-dark:    #1a2b22;
    --text-muted:   #6b7c74;
    --border:       #d0ddd6;
    --bg-right:     #f0f3f1;
    --white:        #ffffff;
    --shadow:       0 20px 60px rgba(0,0,0,.14);
    --radius-card:  20px;
    --radius-input: 10px;
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-right);
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.andes-login {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* ---- Panel izquierdo ---- */
.andes-left {
    flex: 0 0 45%;
    width: 45%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url('/la_ceja.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Overlay oscuro sobre la foto */
.andes-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,50,30,.65) 0%, rgba(20,80,50,.45) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 52px;
}

/* Logo superior izquierdo */
.andes-logo-top {
    display: flex;
    align-items: center;
}
.andes-logo-top img {
    height: 40px;
    filter: brightness(0) invert(1);
}

/* Texto central */
.andes-left-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--white);
    padding-bottom: 60px;
}

.andes-left-body .welcome-label {
    font-size: 22px;
    font-weight: 600;
    color: var(--green-bright);
    letter-spacing: .01em;
}

.andes-left-body h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
}

.andes-left-divider {
    width: 48px;
    height: 3px;
    background: var(--green-bright);
    border-radius: 2px;
}

.andes-left-body p {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255,255,255,.85);
    max-width: 340px;
}

/* Footer copyright */
.andes-left-footer {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.andes-left-footer-line {
    width: 36px;
    height: 2px;
    background: var(--green-bright);
    border-radius: 2px;
}

/* Curva verde decorativa derecha del panel */
.andes-left-curve {
    position: absolute;
    right: -2px;
    top: 0;
    height: 100%;
    width: 90px;
    pointer-events: none;
}

/* ---- Panel derecho ---- */
.andes-right {
    flex: 0 0 55%;
    width: 55%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-right);
    position: relative;
    padding: 40px 20px;
}

/* Puntos decorativos */
.andes-dots {
    position: absolute;
    display: grid;
    gap: 8px;
    pointer-events: none;
    opacity: .45;
}
.andes-dots--tr { top: 80px;  right: 60px; grid-template-columns: repeat(5,1fr); }
.andes-dots--br { bottom: 80px; right: 60px; grid-template-columns: repeat(5,1fr); }
.andes-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-mid);
    display: block;
}

/* ============================================================
   CARD LOGIN
   ============================================================ */
.andes-card {
    width: 600px;
    max-width: 95%;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* --- Header de la card --- */
.andes-card-header {
    position: relative;
    background: var(--green-dark);
    padding: 32px 40px 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

/* Ola SVG inferior del header */
.andes-card-header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* Ícono candado */
.andes-lock-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.andes-lock-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

/* Título header */
.andes-card-header-text {
    position: relative;
    z-index: 1;
}
.andes-card-header-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.andes-card-header-text p {
    font-size: 14px;
    color: rgba(255,255,255,.75);
    margin-bottom: 10px;
}
.andes-header-underline {
    width: 40px;
    height: 3px;
    background: var(--green-bright);
    border-radius: 2px;
}

/* Burbuja verde decorativa header */
.andes-header-bubble {
    position: absolute;
    right: -30px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--green-mid);
    opacity: .35;
}

/* --- Cuerpo de la card --- */
.andes-card-body {
    padding: 36px 40px 32px;
}

/* --- Grupos de campos --- */
.andes-field {
    margin-bottom: 22px;
}

.andes-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.andes-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.andes-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
}
.andes-input-icon svg { width: 18px; height: 18px; }

.andes-input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    font-size: 15px;
    color: var(--text-dark);
    border: 1.8px solid var(--border);
    border-radius: var(--radius-input);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: var(--white);
}

.andes-input-wrap input::placeholder { color: #aabbb2; }

.andes-input-wrap input:focus {
    border-color: var(--green-bright);
    box-shadow: 0 0 0 3px rgba(45,184,90,.12);
}

/* Botón ojo contraseña */
.andes-eye-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    padding: 4px;
    transition: color .2s;
}
.andes-eye-btn:hover { color: var(--green-mid); }
.andes-eye-btn svg { width: 20px; height: 20px; }

/* ¿Olvidaste contraseña? */
.andes-forgot {
    text-align: right;
    margin-top: 8px;
}
.andes-forgot a {
    font-size: 13px;
    color: var(--green-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.andes-forgot a:hover { color: var(--green-dark); text-decoration: underline; }

/* Checkbox Recuérdame */
.andes-remember {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0 28px;
    cursor: pointer;
    user-select: none;
}

.andes-remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: border-color .2s, background .2s;
    position: relative;
}
.andes-remember input[type="checkbox"]:checked {
    background: var(--green-mid);
    border-color: var(--green-mid);
}
.andes-remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.andes-remember-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}
.andes-remember-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Botones de acción --- */
.andes-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.andes-btn-cancel {
    padding: 13px 28px;
    border-radius: 10px;
    border: 1.8px solid var(--border);
    background: var(--white);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.andes-btn-cancel:hover {
    border-color: var(--green-bright);
    background: var(--green-light);
}

.andes-btn-submit {
    padding: 13px 28px;
    border-radius: 10px;
    border: none;
    background: var(--green-mid);
    font-size: 15px;
    font-weight: 600;
    color: var(--white) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .2s, transform .1s;
}
.andes-btn-submit:hover { background: var(--green-dark); }
.andes-btn-submit:active { transform: scale(.98); }
.andes-btn-submit svg { width: 18px; height: 18px; }

/* --- Footer debajo de la card --- */
.andes-right-footer {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}
.andes-right-footer a {
    color: var(--green-mid);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.andes-right-footer a:hover { color: var(--green-dark); text-decoration: underline; }

.concrete-login-form .btn-primary {
    background-color: #27ae60; 
    border-color: #27ae60;
    color: #ffffff;
}

/* Efecto al pasar el mouse sobre el botón */
.concrete-login-form .btn-primary:hover,
.concrete-login-form .btn-primary:focus {
    background-color: #219653; /* Un verde un poco más oscuro */
    border-color: #219653;
    color: #ffffff;
}

/* Cambiar el color del enlace Forgot Password */
.concrete-login-form .btn-link {
    color: #27ae60;
    text-decoration: none;
}

/* Efecto al pasar el mouse sobre el enlace */
.concrete-login-form .btn-link:hover {
    color: #219653;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .andes-left { display: none; }
    .andes-right { flex: 1; width: 100%; padding: 30px 16px; }
    .andes-card { width: 100%; }
    .andes-card-body { padding: 28px 24px 24px; }
    .andes-card-header { padding: 28px 24px 55px; }
}