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

:root {
    --primary-color: #003D6E;
    --secondary-color: #002847;
    --success-color: #27ae60;
    --error-color: #e74c3c;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

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

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 50px 30px 40px;
    text-align: center;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

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

.login-icon i {
    font-size: 42px;
    color: white;
}

.login-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.login-header p {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.login-form {
    padding: 40px 35px 35px;
    background: white;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #2d3436;
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 16px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 16px;
    pointer-events: none;
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 61, 110, 0.1);
}

.form-group input:focus + .input-icon {
    color: var(--primary-color);
}

.form-group input::placeholder {
    color: #bdc3c7;
}

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

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 61, 110, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 61, 110, 0.4);
}

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

.btn-login i {
    font-size: 18px;
}

/* Alerts removidos - se usará SweetAlert2 en su lugar */

.login-footer {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ecf0f1 100%);
    padding: 25px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 20px 20px;
}

.login-footer p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-footer .footer-tagline {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 300;
    margin-top: 5px;
}

.login-footer i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 520px) {
    .login-container {
        padding: 15px;
    }
    
    .login-header {
        padding: 40px 25px 35px;
    }

    .login-icon {
        width: 75px;
        height: 75px;
    }

    .login-icon i {
        font-size: 36px;
    }
    
    .login-header h2 {
        font-size: 26px;
    }

    .login-header p {
        font-size: 14px;
    }
    
    .login-form {
        padding: 35px 25px 30px;
    }

    .login-footer {
        padding: 20px 25px;
    }
}

@media (max-width: 400px) {
    .login-box {
        border-radius: 15px;
    }

    .login-header {
        padding: 35px 20px 30px;
    }

    .login-form {
        padding: 30px 20px 25px;
    }

    .form-group input {
        padding: 13px 15px 13px 42px;
        font-size: 14px;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
}

/* Animaciones adicionales */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-icon:hover {
    animation: pulse 1s ease-in-out;
}

/* Mensaje de error */
.error-message {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.error-message i {
    font-size: 18px;
    flex-shrink: 0;
}

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

/* Google reCAPTCHA wrapper */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.recaptcha-wrapper > div {
    transform: scale(0.95);
    transform-origin: center center;
}

@media (max-width: 400px) {
    .recaptcha-wrapper > div {
        transform: scale(0.85);
    }
}
