/* ==========================================================
   Login Admisiones UM - basado en el login del Sistema Acad�mico
   Adaptado a la identidad morada UM y con FONDO FIJO.
   ========================================================== */

/* ----------------------------------------------------------
   Ajustes Globales
   ---------------------------------------------------------- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #000; /* Color de respaldo */
}

/* ----------------------------------------------------------
   Contenedor Principal y Fondos (FONDO FIJO)
   ---------------------------------------------------------- */
.bg-container {
    background-image: url('../imagenes/Rectoria.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* La imagen permanece fija aunque el contenido se desplace */
    background-attachment: fixed;
}

.bg-overlay {
    background: rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------------
   Tarjeta de Login (Glassmorphism)
   ---------------------------------------------------------- */
.login-card-wrapper {
    max-width: 28rem; /* equivalente a max-w-md */
}

.glass-panel {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Logo UM Circular */
.logo-circle {
    width: 5rem;
    height: 5rem;
    background-color: #512da8; /* Morado UM */
    border-radius: 50%;
}

/* La flama de UM es morada; la convertimos a blanca para que
   contraste sobre el c�rculo morado. */
.logo-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ----------------------------------------------------------
   Formulario e Inputs
   ---------------------------------------------------------- */
.input-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.1em;
    margin-left: 0.25rem;
    margin-bottom: 0.25rem;
    display: block;
}

.custom-input {
    background-color: #f9fafb !important;
    border: 2px solid transparent !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    transition: all 0.2s ease-in-out !important;
}

.custom-input::placeholder {
    color: #9ca3af !important;
}

.custom-input:focus {
    background-color: #ffffff !important;
    border-color: #7c4dff !important;
    box-shadow: 0 0 0 4px rgba(81, 45, 168, 0.12) !important;
    outline: none;
}

.toggle-password:focus {
    outline: none;
    box-shadow: none;
}

.toggle-password:hover {
    color: #4b5563 !important;
}

/* ----------------------------------------------------------
   Botones
   ---------------------------------------------------------- */
.btn-gradient {
    background: linear-gradient(135deg, #6d4bc9 0%, #512da8 50%, #3d1f86 100%) !important;
    box-shadow: 0 4px 15px rgba(61, 31, 134, 0.4) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem !important;
    border: none !important;
    transition: transform 0.1s ease, opacity 0.2s ease !important;
}

.btn-gradient:hover {
    opacity: 0.92 !important;
    color: #ffffff !important;
}

.btn-gradient:active {
    transform: scale(0.98) !important;
}

/* Bot�n secundario (Registrarse) */
.btn-registro {
    background-color: #ffffff !important;
    border: 2px solid #512da8 !important;
    border-radius: 0.75rem !important;
    color: #512da8 !important;
    font-weight: 600 !important;
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.btn-registro:hover {
    background-color: #512da8 !important;
    color: #ffffff !important;
}

.forgot-link {
    color: #512da8;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #3d1f86;
}

.loginError {
    color: #b94a48;
    display: none;
    font-size: 0.85rem;
    text-align: center;
}

/* Mensaje de bienvenida dentro de la tarjeta */
.welcome-text {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #6b7280;
}

/* Aviso corto de "ya tengo cuenta" antes del bot�n de ingresar */
.login-hint {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Tarjeta de contacto (cuando hay par�metro error) */
.contact-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.contact-card a {
    color: #512da8;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer-glass {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}
