﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    /* Imagen de fondo + degradado oscuro encima */
    background-image: linear-gradient(135deg, rgba(5, 10, 40, 0.90), rgba(10, 26, 77, 0.95)), url('../Imagenes/Login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Centrado vertical y horizontal */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tarjeta estilo glassmorphism */
.login-card {
    width: 420px;
    padding: 28px 30px 22px;
    border-radius: 24px;
    background: rgba(7, 16, 48, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px);
}

/* Header */
.card-header {
    background: transparent;
    border: none;
    padding-bottom: 0;
    margin-bottom: 18px;
}

    .card-header h3 {
        color: #ffffff;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

.login-subtitle {
    margin-top: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Inputs modernos */
.modern-input {
    border-radius: 16px;
    background: rgba(4, 9, 30, 0.7);
    border: 1px solid transparent;
    padding: 4px 10px;
    transition: all 0.2s ease;
}

    .modern-input:focus-within {
        border-color: #4f8dff;
        box-shadow: 0 0 0 1px rgba(79, 141, 255, 0.35);
    }

.input-group-prepend span {
    background: transparent;
    border: none !important;
    width: auto;
    color: #8fa3ff;
    font-size: 0.95rem;
}

.input-group-text {
    border-radius: 12px;
}

/* Inputs transparentes */
.form-control {
    background: transparent !important;
    border: none !important;
    color: #ffffff;
    font-size: 0.95rem;
}

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.55);
    }

    .form-control:focus {
        outline: none !important;
        box-shadow: none !important;
    }

/* Botón principal */
.login_btn {
    width: 100%;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    border: none;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
    background-image: linear-gradient(135deg, #4f8dff, #6a5cff);
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(38, 84, 192, 0.65);
    transition: all 0.18s ease-in-out;
}

    .login_btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 26px rgba(38, 84, 192, 0.80);
        background-image: linear-gradient(135deg, #6a5cff, #9d4fff);
    }

/* Footer */
.card-footer {
    background: transparent;
    border: none;
    margin-top: 10px;
    padding-top: 8px;
}

.login-footer-text {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Mensajes de error/login */
.modern-modal .modal-dialog {
    margin: 0 auto;
}

.modal-glass {
    border-radius: 20px;
    background: rgba(7, 16, 48, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 10px 8px 12px;
}

/* Variantes por tipo */
.modal-glass-warning {
    box-shadow: 0 18px 36px rgba(255, 193, 7, 0.35);
}

.modal-glass-error {
    box-shadow: 0 18px 36px rgba(220, 53, 69, 0.4);
}

/* Encabezado */
.modal-status-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, #4f8dff 0, rgba(79, 141, 255, 0.1) 60%);
    color: #fff;
    font-size: 1.1rem;
}

.modal-glass-warning .modal-status-icon {
    background: radial-gradient(circle at 30% 0, #ffc107 0, rgba(255, 193, 7, 0.12) 60%);
}

.modal-glass-error .modal-status-icon {
    background: radial-gradient(circle at 30% 0, #ff4e6a 0, rgba(255, 78, 106, 0.16) 60%);
}

.modal-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Botón de cierre */
.modern-close {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: none;
    opacity: 1;
    outline: none !important;
}

    .modern-close:hover {
        color: #ffffff;
    }

/* Texto del mensaje que llenas con JS */
.modern-modal-message {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Oculta el checkbox de remember ya que no se usa */
.remember {
    display: none;
}
