﻿/* Styles/Login.css - minimalista */
:root {
    --primary: #0d6efd;
    --muted: #6c757d;
    --bg: #fbfcfe;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(16,24,40,0.06);
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #222;
    margin: 0;
}

/* Centrado */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 48px 0;
    min-height: 100vh;
}

/* Card limpio */
.modal-card {
    width: 100%;
    max-width: 560px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 28px 32px;
    border: 1px solid rgba(16,24,40,0.03);
}

/* Cabecera minimalista */
.modal-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Logo imagen: usa tu icono de recursos */
.brand-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Título y subtítulo */
.modal-card h3 {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.modal-sub {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 8px;
    text-align: center;
}

/* Contenedor del formulario (centrado como el logo) */
.contraseña {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

    /* Asegurar que el <form> no rompa el centrado */
    .contraseña form {
        width: 100%;
    }

/* Espaciado entre campos */
.mb-3 {
    margin-bottom: 1rem;
}

/* Labels alineados a la izquierda dentro del bloque centrado */
.form-label {
    font-size: .92rem;
    color: #444;
    margin-bottom: 6px;
    display: block;
    text-align: left;
}

/* Inputs ocupan todo el ancho del bloque */
.form-control {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    padding: .75rem .95rem;
    font-size: .95rem;
    transition: box-shadow .12s ease, border-color .12s ease;
}

    .form-control:focus {
        border-color: rgba(13,110,253,0.9);
        box-shadow: 0 6px 18px rgba(13,110,253,0.06);
        outline: none;
    }

/* Botón del mismo ancho y centrado */
.primary-btn {
    background: linear-gradient(180deg, var(--primary), #0b5ed7);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: .85rem 1rem;
    box-shadow: 0 8px 20px rgba(13,110,253,0.12);
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .primary-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(13,110,253,0.18);
    }

    .primary-btn:active {
        transform: translateY(0);
    }

/* Contenedor del botón de WhatsApp (mismo ancho que formulario) */
.whatsapp-container {
    width: 100%;
    max-width: 420px;
    margin: 12px auto 0 auto;
}

/* Botón de WhatsApp */
.whatsapp-btn {
    background: linear-gradient(180deg, #25d366, #1ebe57);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: .85rem 1rem;
    box-shadow: 0 8px 20px rgba(37,211,102,0.25);
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .whatsapp-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37,211,102,0.35);
    }

    .whatsapp-btn:active {
        transform: translateY(0);
    }

/* Pie minimalista */
.login-footer {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}

    .login-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

/* Alertas con estilo */
.alert-custom {
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

    .alert-custom .icon {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
    }

.alert-success {
    background: linear-gradient(180deg, rgba(25,135,84,0.06), rgba(25,135,84,0.02));
    border-color: rgba(25,135,84,0.12);
}

.alert-danger {
    background: linear-gradient(180deg, rgba(220,53,69,0.06), rgba(220,53,69,0.02));
    border-color: rgba(220,53,69,0.12);
}

.alert-success .icon {
    background: linear-gradient(180deg, #28a745, #20a03b);
}

.alert-danger .icon {
    background: linear-gradient(180deg, #dc3545, #c82333);
}

/* Responsive */
@media (max-width:576px) {
    .modal-card {
        padding: 20px;
        margin: 12px;
    }

    .brand-logo-img {
        width: 56px;
        height: 56px;
    }

    .contraseña,
    .whatsapp-container,
    .alert-custom {
        max-width: 100%;
    }
}
