* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 10% 30%, rgba(15, 25, 55, 0.95), rgba(5, 10, 30, 0.98)), 
repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 8px);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

/* Fondo animado sutil */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 180, 255, 0.08), transparent 70%);
    pointer-events: none;
}

/* Tarjeta principal estilo glassmorphism */
.login-card {
    background: rgba(20, 30, 55, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 2.2rem 2rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

@keyframes fadeInUp {
    from {
opacity: 0;
transform: translateY(30px);
    }
    to {
opacity: 1;
transform: translateY(0);
    }
}

/* Logo / icono moderno */
.brand-icon {
    width: 76px;
    height: 76px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    padding: 0.55rem;
    box-shadow: 0 10px 24px -5px rgba(0, 80, 200, 0.35);
    transition: all 0.2s ease;
    overflow: hidden;
}

.brand-icon img {
    width: auto;
    height: auto;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
    display: block;
}
.login-card h3 {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #FFFFFF 0%, #CFE3FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 0.25rem;
}
.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Estilos para inputs flotantes modernos */
.form-floating-modern {
    position: relative;
    margin-bottom: 1.5rem;
}
.form-floating-modern input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.2rem;
    padding: 1rem 1rem 1rem 2.8rem;
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
    transition: all 0.25s ease;
    outline: none;
}
.form-floating-modern input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.form-floating-modern label {
    position: absolute;
    left: 2.8rem;
    top: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    pointer-events: none;
    transition: 0.2s ease all;
    background: transparent;
    padding: 0 0.2rem;
}
.form-floating-modern input:focus ~ label,
.form-floating-modern input:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 1.2rem;
    font-size: 0.7rem;
    background: rgba(20, 30, 55, 0.8);
    backdrop-filter: blur(4px);
    padding: 0 0.4rem;
    color: #80b5ff;
    border-radius: 20px;
}
.input-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.2s;
}
.form-floating-modern input:focus + .input-icon {
    color: #3b82f6;
}

/* Botón elegante */
.btn-modern {
    background: linear-gradient(105deg, #1e6df2, #0a5ad9);
    border: none;
    border-radius: 2rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    color: white;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(0, 80, 200, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 0.75rem;
}
.btn-modern:hover {
    transform: translateY(-2px);
    background: linear-gradient(105deg, #2f7af2, #1362e3);
    box-shadow: 0 12px 22px rgba(0, 80, 200, 0.35);
}
.btn-modern:active {
    transform: translateY(1px);
}
.btn-modern:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

/* Alertas personalizadas */
.custom-alert {
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    border-left: 4px solid;
    animation: slideDown 0.35s ease;
}
@keyframes slideDown {
    from {
opacity: 0;
transform: translateY(-12px);
    }
    to {
opacity: 1;
transform: translateY(0);
    }
}
.alert-success-custom {
    background: rgba(34, 197, 94, 0.2);
    border-left-color: #22c55e;
    color: #d0ffd0;
}
.alert-danger-custom {
    background: rgba(239, 68, 68, 0.2);
    border-left-color: #ef4444;
    color: #ffd4d4;
}

/* spinner sutil en botón */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* link extra (opcional) */
.extra-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.extra-link a {
    color: #a5c9ff;
    text-decoration: none;
    transition: color 0.2s;
}
.extra-link a:hover {
    color: white;
    text-decoration: underline;
}

/* placeholder color blanco translúcido */
input::placeholder {
    color: rgba(255,255,255,0.3);
    font-weight: 400;
}
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s;
}
