﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 440px;
    width: 100%;
    padding: 50px 40px;
    animation: slideUp 0.6s ease-out;
    border: 1px solid #e9ecef;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

    .login-header .logo {
        max-width: 200px;
        height: auto;
        margin-bottom: 25px;
        animation: fadeInDown 0.8s ease-out;
    }

    .login-header h1 {
        font-size: 32px;
        font-weight: 700;
        color: #1e2b4d;
        margin-bottom: 8px;
        animation: fadeInDown 0.8s ease-out 0.1s backwards;
    }

    .login-header p {
        font-size: 16px;
        color: #6c757d;
        font-weight: 400;
        animation: fadeInDown 0.8s ease-out 0.2s backwards;
    }

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #1e2b4d;
        margin-bottom: 8px;
    }

        .form-group label i {
            margin-right: 8px;
            color: #EA2151;
            font-size: 13px;
        }

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1e2b4d;
}

    .form-control:focus {
        outline: none;
        border-color: #EA2151;
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(234, 33, 81, 0.1);
    }

    .form-control::placeholder {
        color: #adb5bd;
    }

.password-wrapper {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

    .btn-toggle-password:hover {
        color: #EA2151;
    }

    .btn-toggle-password:focus {
        outline: none;
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #1e2b4d;
    user-select: none;
}

    .checkbox-container input {
        margin-right: 8px;
        cursor: pointer;
        width: 16px;
        height: 16px;
    }

.forgot-password {
    color: #EA2151;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #c71d45;
        text-decoration: underline;
    }

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-out;
}

.alert-danger {
    background-color: #fff5f7;
    border: 1px solid #EA2151;
    color: #c71d45;
}

    .alert-danger i {
        font-size: 18px;
        color: #EA2151;
    }

.btn-login {
    width: 100%;
    padding: 16px;
    background: #EA2151;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

    .btn-login:hover {
        background: #c71d45;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(234, 33, 81, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(234, 33, 81, 0.2);
    }

    .btn-login i {
        transition: transform 0.3s ease;
    }

    .btn-login:hover i {
        transform: translateX(5px);
    }

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

    .login-footer p {
        color: #6c757d;
        font-size: 14px;
    }

    .login-footer a {
        color: #EA2151;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .login-footer a:hover {
            color: #c71d45;
            text-decoration: underline;
        }

/* Círculos decorativos */
.decorative-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background: rgba(234, 33, 81, 0.05);
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    background: rgba(30, 43, 77, 0.05);
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    background: rgba(234, 33, 81, 0.03);
    animation-delay: 10s;
}

/* Animaciones */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
        max-width: 95%;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-header .logo {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 35px 25px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
}
