.login-container {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

.logo-icon span {
    color: white;
    font-size: 32px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-forgot input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #374151;
    margin: 0;
}

.remember-forgot a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.remember-forgot a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(55, 65, 81, 0.4);
}

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

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
    color: #d1d5db;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.signup-link {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.signup-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 8px;
}

.error-message.show {
    display: flex;
}

.success-message {
    background-color: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #16a34a;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 8px;
}

.success-message.show {
    display: flex;
}

.warning-message {
    background-color: #fef3c7;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #d97706;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 8px;
}

.warning-message.show {
    display: flex;
}

.demo-credentials {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #374151;
}

.demo-credentials strong {
    display: block;
    margin-bottom: 8px;
}

.demo-credentials code {
    background-color: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* ── Checklist de requisitos de senha ─────────────────────────────────── */
.pwd-requirements {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 0.78rem;
}

.pwd-req-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    color: #94a3b8;
    transition: color 0.2s;
}

.pwd-req-item.valid   { color: #16a34a; }
.pwd-req-item.invalid { color: #dc2626; }

.pwd-req-icon { font-size: 14px !important; }

@media (max-width: 640px) {
    .login-card {
        padding: 32px 24px;
        max-width: 100%;
        margin: 20px;
    }

    .login-header {
        margin-bottom: 24px;
    }
}