:root {
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        linear-gradient(rgba(0, 0, 0, 0.63),
                        rgba(0, 0, 0, 0.63)),
        url("/imgs/header-palmera-junior-02.webp");

    background-size: cover;
    background-position: center;

    filter: blur(5px);
    z-index: -1;
}



@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* ============================================
   TARJETA DE LOGIN
   ============================================ */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px 36px 32px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 45px -15px rgba(169, 233, 200, 0.404);
    position: relative;
    overflow: hidden;
}

.login-container.login-error {
    animation: shake 0.35s ease-in-out;
}

/* Acento superior: mismo degradado verde institucional del navbar */
.login-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: radial-gradient(ellipse at 70% 50%, #0a2a86, #051e66 60%, #031450);
}

/* ============================================
   LOGO / ENCABEZADO
   ============================================ */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.logo img {
    max-height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.separador {
    width: 1px;
    height: 40px;
    background: #dee2e6;
    flex-shrink: 0;
}

.logo p {
    color: #060c1b;
    font-size: 15px;
    font-weight: 600;
   

    
}

#logo1 {
    max-height: 115px;
    width: auto;
    object-fit: contain;
}

#logo2 {
    max-height: 23px;
    width: auto;
    object-fit: contain;
}

/* ============================================
   ALERTAS
   ============================================ */
.alert-error,
.alert-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    font-weight: 500;
}

.alert-error {
    background: #fdeeec;
    color: #c9432f;
    border: 1px solid #f3c6bd;
}

.alert-success {
    background: #e6f6ec;
    color: #157347;
    border: 1px solid #b7e4c7;
}

.alert-error .material-symbols-outlined,
.alert-success .material-symbols-outlined {
    font-size: 18px;
}

/* ============================================
   CAMPOS DE FORMULARIO
   ============================================ */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    outline: none;
    font-size: 14.5px;
    color: #212529;
    background: #fff;
    transition: all .15s ease;
}

.input-group input::placeholder {
    color: #adb5bd;
}

.input-group input:focus {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

/* ============================================
   BOTÓN PRINCIPAL
   ============================================ */
.btn-login {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: radial-gradient(ellipse at 70% 50%, #0a2a86, #051e66 60%, #031450);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.25);
    transition: all .2s ease;
    margin-top: 4px;
}

.btn-login:hover {
  
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
    transform: translateY(-1px);
}

/* ============================================
   DIVISOR "o continúa con"
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0 16px;
    color: #adb5bd;
    font-size: 12.5px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider span {
    padding: 0 12px;
}

/* ============================================
   BOTÓN DE GOOGLE
   ============================================ */
.btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-microsoft:hover {
    background: #e4e6e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.microsoft-icon {
    width: 20px;
    height: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.microsoft-icon span:nth-child(1) { background: #f25022; }
.microsoft-icon span:nth-child(2) { background: #7fba00; }
.microsoft-icon span:nth-child(3) { background: #00a4ef; }
.microsoft-icon span:nth-child(4) { background: #ffb900; }
