:root {
    --primary-color: #004be3;
    --primary-hover: #1a5ef0;
    --bg-gradient: linear-gradient(90deg, rgba(10, 0, 82, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(9, 120, 143, 1) 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #333333;
    --text-muted: #9aa3ad;
}

/* =========================================
   ESTILOS DEL FONDO (BACKGROUND)
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* =========================================
   ESTILOS DEL RECUADRO (LOGIN CARD)
   ========================================= */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo a {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
}

.login-logo b {
    color: #ffd700;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.login-header {
    margin-bottom: 32px;
    text-align: center;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.login-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
    transition: color 0.3s ease;
}

.form-control {
    background: #ffffff;
    border: 2px solid #9aa3ad;
    border-radius: 8px;
    height: 52px;
    padding: 0 16px 0 48px;
    color: #1e293b;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 75, 227, 0.1) !important;
}

.form-control:focus + i {
    color: var(--primary-color);
}

.form-control::placeholder {
    color: #9aa3ad;
}

.btn-login {
    background: #004be3;
    color: #ffffff;
    border: none;
    border-radius: 8px !important;
    height: 52px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 75, 227, 0.4);
    transition: all 0.2s ease;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.btn-login:hover {
    background: #1a5ef0;
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0, 75, 227, 0.5);
    color: #ffffff;
}

.btn-login:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 75, 227, 0.3);
}

.alert {
    border-radius: 0;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border-left: 4px solid #c0392b;
}

.alert-warning {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: white;
    border-left: 4px solid #f39c12;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}
