/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(185, 29, 34, 0.95) 50%, rgba(139, 0, 0, 0.95) 50%),
                url('../../uploads/fondos/fondo_login.webp') center/cover no-repeat fixed;
    padding: 20px;
}

/* Si prefieres un patrón en lugar de imagen */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
    pointer-events: none;
    z-index: 1;
}

.login-container {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease-out;
}

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

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #B91D22 0%, #8B0000 100%);
    color: white;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.logo-circle i {
    font-size: 48px;
    color: white;
}

.login-header h1 {
    font-size: 26px;
    margin: 0 0 10px 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.login-header p {
    margin: 0;
    font-size: 15px;
    opacity: 0.90;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.login-body {
    padding: 40px 30px;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.alert i {
    font-size: 18px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-group label i {
    color: #B91D22;
    margin-right: 5px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #B91D22;
    background: white;
    box-shadow: 0 0 0 4px rgba(185, 29, 34, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #B91D22;
}

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

/* Login Button */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #B91D22 0%, #8B0000 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(185, 29, 34, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 29, 34, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 8px;
}

/* Footer */
.login-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    margin: 0;
}

.login-footer .des{
    font-size: 11px;
}

.login-footer .des a{
    text-decoration: none;
    font-weight: bold;
    color: #666;
}

.login-footer .des a:hover{
    color: #B91D22;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 0;
    }
    
    .login-card {
        border-radius: 20px;
    }
    
    .login-header {
        padding: 40px 20px;
    }
    
    .login-body {
        padding: 30px 20px;
    }
    
    .logo-circle {
        width: 80px;
        height: 80px;
    }
    
    .logo-circle i {
        font-size: 36px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
}