:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary: #10b981;
    --dark-bg: #0f172a;
    --dark-card: rgba(30, 41, 59, 0.85);
    --dark-text: #f1f5f9;
    --dark-border: rgba(255, 255, 255, 0.1);
    --error: #ef4444;
    --success: #10b981;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: 
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center fixed;
    background-size: cover;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.login-container {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--dark-border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(16, 185, 129, 0.05) 70%, transparent 100%);
    z-index: -1;
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.logo-icon {
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.company-name {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.company-slogan {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.login-subtitle {
    color: #94a3b8;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #cbd5e1;
}

.form-input {
    width: 100%;
    padding: 15px 50px 15px 18px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    color: var(--dark-text);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    background: rgba(30, 41, 59, 0.9);
}

.form-input::placeholder {
    color: #64748b;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    padding: 5px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.toggle-password:hover {
    color: #4b5563;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(124, 58, 237, 0.4);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #94a3b8;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.5s ease-in-out;
    display: flex;
    align-items: center;
}

.alert-error::before {
    content: '⚠';
    margin-right: 10px;
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #64748b;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--dark-border);
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--dark-border);
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 25px;
        border-radius: 16px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .company-name {
        font-size: 20px;
    }

    .login-title {
        font-size: 22px;
    }

    .form-input {
        padding: 14px 45px 14px 16px;
    }

    .login-button {
        padding: 14px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* CORREÇÃO ESPECÍFICA PARA O BOTÃO DO OLHO NO MOBILE */
    .toggle-password {
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Efeito de partículas decorativas */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.tentativas-info {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 15px;
}

.bloqueado {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}