﻿/* ===== Login - Coopavegra ===== */

/* ===== Contenedor centrado (fondo blanco) ===== */
.login-wrap {
    min-height: calc(100vh - 64px); /* resta aprox. la altura del navbar */
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: #ffffff; /* limpio, sin gris */
}

/* ===== Tarjeta ===== */
.login-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid #eef0f4; /* borde suave */
    border-radius: 14px;
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    animation: fadeInUp .5s ease-out both;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===== Encabezado ===== */
.login-logo {
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

    .login-logo img {
        height: 90px;
        max-height: 120px;
        width: auto;
        display: block;
    }


.login-title {
    text-align: center;
    color: #8E1E2B; /* burdeos corporativo */
    font-weight: 800;
    letter-spacing: .4px;
    font-size: 2rem; /* ~32px */
    line-height: 1.2;
    margin: .25rem 0;
}

.login-sub {
    text-align: center;
    color: #6b7280;
    font-weight: 600;
    font-size: .95rem;
    margin: .5rem 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef0f4;
}

/* ===== Inputs ===== */
.login-card .form-label {
    font-weight: 600;
    color: #374151;
}

.login-card .form-control {
    height: 46px;
    border-radius: 10px;
    border-color: #e5e7eb;
}

    .login-card .form-control:focus {
        border-color: #0B2A5B; /* azul Coopavegra */
        box-shadow: 0 0 0 .2rem rgba(11,42,91,.12);
    }

/* ===== Ojito toggle password ===== */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 1.2rem; /* tamaño fijo del ícono */
    line-height: 1;
    transition: color .2s ease;
}

    .toggle-password:hover {
        color: #0B2A5B; /* azul corporativa */
    }


/* ===== Botón principal ===== */
.btn-login-primary {
    color: #fff !important; /* texto visible siempre */
    height: 46px;
    font-weight: 700;
    border-radius: 10px;
    background: #0B2A5B;
    border-color: #0B2A5B;
}

    .btn-login-primary:hover {
        background: #0a2550;
        border-color: #0a2550;
        color: #fff !important;
    }

    .btn-login-primary:disabled,
    .btn-login-primary[disabled] {
        color: #fff !important;
        opacity: .75;
    }

/* ===== Links auxiliares ===== */
.login-links {
    text-align: center;
    margin-top: .75rem;
}

    .login-links a {
        color: #0B2A5B;
        text-decoration: none;
        font-weight: 600;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

/* Placeholders un poco más visibles */
.login-card .form-control::placeholder {
    color: #9ca3af;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .login-card {
        padding: 1.75rem 1.25rem;
    }

    .login-logo img {
        height: 70px;
    }

    .login-title {
        font-size: 1.6rem;
    }
}
