* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo decorativo */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    top: -150px;
    right: -150px;
}

body::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    bottom: -100px;
    left: -100px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.login-header {
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 350px;
    background: url('https://images.vexels.com/media/users/3/200005/isolated/preview/6ab2b3bc9f9e338cfd4f9ec98ef9d731-hombre-personaje-isometrico.png') no-repeat;
    background-size: cover;
    background-position: top right;
    opacity: 0.15;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-header p {
    opacity: 0.9;
    font-size: 16px;
    font-weight: 400;
}

.reportes-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-form {
    padding: 40px;
}

/* Estilo para el botón de Google */
.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.google-button:hover {
    background-color: #f8fafc;
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.google-button img {
    width: 24px;
    height: 24px;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #a0aec0;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #e2e8f0;
}

.divider span {
    margin: 0 15px;
    font-weight: 600;
    color: #718096;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2d3748;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 18px;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    background: white;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15);
}

.form-group input:focus + i,
.input-with-icon:focus-within i {
    color: #4299e1;
}

.form-group input::placeholder {
    color: #a0aec0;
}

.error-message {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
    border-left: 5px solid #c53030;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.error-message i {
    font-size: 20px;
}

.success-message {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
    border-left: 5px solid #38a169;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.success-message i {
    font-size: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.5px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
    position: relative;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3) !important;
}

.login-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.login-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.login-footer {
    text-align: center;
    padding: 25px 40px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #718096;
    background: #f7fafc;
}

.login-footer p {
    margin: 5px 0;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.version-info a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.version-info a:hover {
    color: #667eea;
    text-decoration: underline;
}

.security-info {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.security-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
    margin: 0;
}

.security-info i {
    color: #4299e1;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .form-group input {
        padding: 14px 15px 14px 50px;
        font-size: 15px;
    }
    
    .login-button {
        padding: 16px;
        font-size: 16px;
    }
    
    .google-button {
        padding: 12px;
        font-size: 15px;
    }
}