* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(
            135deg,
            rgba(20, 61, 165, 0.67) 0%,
            rgba(23, 72, 151, 0.62) 50%,
            rgba(74, 143, 247, 0.46) 100%
        ),
        url("https://panoramadenoticias.com.ar/wp-content/uploads/2023/08/unnamed-file-1024x636.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 20% 50%,
            rgba(39, 118, 245, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(39, 118, 245, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 20%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 40%
        );
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    padding: 50px 40px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(39, 118, 245, 0.3));
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: #4e4e4eff;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    font-size: 15px;
    color: #64748b;
    text-align: center;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-input:focus {
    outline: none;
    border-color: #2776f5;
    box-shadow: 0 0 0 4px rgba(39, 118, 245, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2776f5;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2776f5;
}

.forgot-password {
    color: #2776f5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1a4fd8;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2776f5 0%, #1a4fd8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 118, 245, 0.3);
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1a4fd8 0%, #1543b8 100%);
    box-shadow: 0 6px 20px rgba(39, 118, 245, 0.4);
    transform: translateY(-2px);
}

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

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #94a3b8;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 15px;
}

.register-section {
    text-align: center;
}

.register-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
}

.btn-register {
    width: 100%;
    padding: 14px;
    background: white;
    color: #2776f5;
    border: 2px solid #2776f5;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.btn-register:hover {
    background: #2776f5;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 118, 245, 0.2);
    transform: translateY(-2px);
}

.footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: #94a3b8;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
}

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

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.loading {
    display: none;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }

    .title {
        font-size: 24px;
    }

    .logo {
        width: 120px;
    }
}
