﻿/* ==========================
   LOGIN & REGISTRO
========================== */

.login-wrapper {
    min-height: 80vh;
}

.login-card, .registro-card {
    max-width: 420px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: none;
}

/* Título moderno */
.titulo-login {
    font-weight: 700;
    color: #023e8a;
}

/* Botón principal con colores del proyecto */
.btn-login {
    background: linear-gradient(90deg, #d90429, #023e8a);
    border: none;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
}

    .btn-login:hover {
        opacity: .92;
    }

/* Enlaces */
.link-registro {
    color: #d90429;
    font-weight: 600;
}

    .link-registro:hover {
        text-decoration: underline;
    }

/* Alinear checkbox con texto */
#MainContent_chkTerminos {
    margin-top: 3px;
    cursor: pointer;
}

/* Inputs */
.form-control {
    border-radius: 8px !important;
    padding: 10px;
    border: 1px solid #ced4da;
}

    .form-control:focus {
        border-color: #023e8a;
        box-shadow: 0 0 5px rgba(2, 62, 138, .4);
    }

/* ==========================
   Alertas de mensajes (login/registro)
========================== */

.custom-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    /* Icono dentro del mensaje */
    .custom-alert::before {
        content: "!";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        font-weight: 700;
        font-size: 0.8rem;
    }

/* Error (alert-danger) */
.alert-danger.custom-alert {
    background: #ffe5e5;
    border: 1px solid #f94144;
    color: #7b1518;
}

    .alert-danger.custom-alert::before {
        background-color: #f94144;
        color: #ffffff;
    }

/* Éxito (alert-success) */
.alert-success.custom-alert {
    background: #e6ffef;
    border: 1px solid #2a9d8f;
    color: #135a4f;
}

    .alert-success.custom-alert::before {
        content: "✓";
        background-color: #2a9d8f;
        color: #ffffff;
    }
