:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #6c757d;
    --background-start: #ffffff;
    --background-end: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-start) 0%, var(--background-end) 100%);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                0 20px 25px -5px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-header h4 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.input-group {
    transition: all 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background-color: white;
}

.input-group-text {
    background-color: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-control {
    border: none;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    background-color: transparent;
}

.form-control:focus {
    box-shadow: none;
    background-color: transparent;
}

.input-group:hover {
    border-color: #cbd5e1;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.toggle-password {
    border: none;
    background: transparent;
    padding: 0 1rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.toggle-password:focus {
    outline: none;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.alert {
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fee2e2;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert i {
    font-size: 1.25rem;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-box {
    animation: fadeIn 0.5s ease-out;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-box {
        padding: 2rem;
        margin: 1rem;
    }

    .login-logo {
        max-width: 100px;
    }

    .btn-primary {
        padding: 0.75rem 1rem;
    }
}

/* Efeito de foco nos inputs */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.form-group:focus-within::after {
    width: 100%;
    left: 0;
}

/* Efeito de preenchimento */
.form-control:not(:placeholder-shown) {
    background-color: rgba(37, 99, 235, 0.02);
}

/* Remover outline padrão do Chrome */
.form-control:focus,
.input-group-text:focus,
.toggle-password:focus {
    outline: none;
}

/* Ajuste do placeholder */
.form-control::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

/* Estilo quando o input estiver com erro */
.input-group.is-invalid {
    border-color: #dc2626;
}

.input-group.is-invalid:focus-within {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Ajuste do cursor */
.input-group-text {
    cursor: default;
}

.toggle-password {
    cursor: pointer;
}