/* ============================================
       LOGIN PAGE - Forge Design System
       Com suporte completo a Dark Mode
       ============================================ */

    body {
        background: #1A1A1A;
        min-height: 100vh;
        font-family: var(--fg-font-primary, 'Inter', sans-serif);
    }

    /* Dark Mode - Ajuste de background */
    [data-bs-theme="dark"] body {
        background: #0F0F0F;
    }

    .modern-login-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .login-card {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: var(--fg-radius-xl, 20px);
        box-shadow: var(--fg-shadow-2xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
        border: 1px solid rgba(255, 255, 255, 0.18);
        overflow: hidden;
        width: 100%;
        max-width: 450px;
    }

    /* Dark Mode - Card */
    [data-bs-theme="dark"] .login-card {
        background: #1A1A1A;
        border: 1px solid #2A2A2A;
    }

    .login-header {
        background: #1A1A1A; /* Forge dark */
        border-bottom: 3px solid #4C7DFF; /* Forge accent */
        padding: 40px 30px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .logo-container {
        position: relative;
        z-index: 2;
        margin-bottom: 20px;
    }

    .logo-container img {
        height: 56px;
        width: auto;
    }

    .welcome-text {
        color: #FFFFFF;
        position: relative;
        z-index: 2;
    }

    .welcome-text h2 {
        font-size: var(--fg-font-size-3xl, 1.875rem);
        font-weight: var(--fg-font-weight-bold, 700);
        margin-bottom: 8px;
        color: #FFFFFF;
    }

    .welcome-text p {
        font-size: var(--fg-font-size-base, 1rem);
        color: #B3B3B3;
        margin: 0;
    }

    .login-body {
        padding: 40px 30px;
    }

    /* Dark Mode - Login Body */
    [data-bs-theme="dark"] .login-body {
        color: var(--fg-gray-100, #f3f4f6);
    }

    .form-floating {
        position: relative;
        margin-bottom: 20px;
    }

    .form-floating.password-field {
        position: relative;
    }

    .form-floating input {
        border: 2px solid var(--fg-gray-300, #e1e5e9);
        border-radius: var(--fg-radius-lg, 12px);
        padding: 20px 16px 8px 16px;
        font-size: var(--fg-font-size-base, 1rem);
        transition: all 0.3s ease;
        background: var(--fg-gray-50, #f8f9fa);
        width: 100%;
        color: var(--fg-gray-900, #111827);
    }

    /* Input com botão de senha - adicionar padding à direita */
    .form-floating.password-field input {
        padding-right: 48px;
    }

    /* Forçar exibição de texto quando type="text" */
    .form-floating.password-field input[type="text"] {
        -webkit-text-security: none;
        text-security: none;
        font-family: var(--fg-font-primary, 'Inter', sans-serif);
    }

    /* Manter estilo password quando type="password" */
    .form-floating.password-field input[type="password"] {
        font-family: password;
    }

    /* Dark Mode - Inputs */
    [data-bs-theme="dark"] .form-floating input {
        background: var(--fg-gray-800, #1f2937);
        border-color: var(--fg-gray-700, #374151);
        color: var(--fg-gray-100, #f3f4f6);
    }

    .form-floating input:focus {
        border-color: #3A6FF7; /* Forge — Brand Blue */
        box-shadow: 0 0 0 0.2rem rgba(58, 111, 247, 0.20);
        background: white;
        outline: none;
    }

    /* Dark Mode - Input Focus */
    [data-bs-theme="dark"] .form-floating input:focus {
        background: var(--fg-gray-700, #374151);
        border-color: #4C7DFF; /* Forge — Brand Blue dark */
    }

    .form-floating label {
        padding: 16px;
        color: var(--fg-gray-600, #6c757d);
        font-weight: var(--fg-font-weight-medium, 500);
        pointer-events: none;
    }

    /* Label para campo com botão de senha */
    .form-floating.password-field label {
        padding-right: 48px;
    }

    /* Dark Mode - Labels */
    [data-bs-theme="dark"] .form-floating label {
        color: var(--fg-gray-400, #9ca3af);
    }

    .password-toggle {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        color: var(--fg-gray-600, #6c757d);
        cursor: pointer;
        z-index: 100;
        transition: color 0.3s ease;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        outline: none;
    }

    .password-toggle:focus {
        outline: none;
    }

    .password-toggle:active {
        transform: translateY(-50%) scale(0.95);
    }

    .password-toggle i {
        font-size: 20px;
        pointer-events: none;
        display: block;
    }

    /* Dark Mode - Password Toggle */
    [data-bs-theme="dark"] .password-toggle {
        color: var(--fg-gray-400, #9ca3af);
    }

    .password-toggle:hover {
        color: #3A6FF7; /* Forge — Brand Blue */
    }

    .remember-me {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
    }

    .custom-checkbox {
        position: relative;
        margin-right: 12px;
    }

    .custom-checkbox input {
        opacity: 0;
        position: absolute;
    }

    .checkmark {
        width: 20px;
        height: 20px;
        background: var(--fg-gray-50, #f8f9fa);
        border: 2px solid var(--fg-gray-300, #e1e5e9);
        border-radius: var(--fg-radius-sm, 4px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    /* Dark Mode - Checkbox */
    [data-bs-theme="dark"] .checkmark {
        background: var(--fg-gray-800, #1f2937);
        border-color: var(--fg-gray-600, #4b5563);
    }

    .custom-checkbox input:checked + .checkmark {
        background: #3A6FF7; /* Forge — Brand Blue */
        border-color: #3A6FF7;
    }

    .custom-checkbox input:checked + .checkmark::after {
        content: '✓';
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

    .remember-me label {
        color: var(--fg-gray-600, #6c757d);
        font-size: var(--fg-font-size-sm, 0.875rem);
        cursor: pointer;
        margin: 0;
    }

    /* Dark Mode - Remember Me Label */
    [data-bs-theme="dark"] .remember-me label {
        color: var(--fg-gray-300, #d1d5db);
    }

    .login-btn {
        width: 100%;
        background: #3A6FF7; /* Forge — Brand Blue */
        border: none;
        border-radius: var(--fg-radius-lg, 12px);
        padding: 16px;
        color: white;
        font-size: var(--fg-font-size-base, 1rem);
        font-weight: var(--fg-font-weight-semibold, 600);
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(58, 111, 247, 0.30);
    }

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

    .btn-loading {
        display: none;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 8px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .footer-text {
        text-align: center;
        margin-top: 30px;
        color: var(--fg-gray-600, #6c757d);
        font-size: var(--fg-font-size-xs, 0.75rem);
        padding-top: 20px;
        border-top: 1px solid var(--fg-gray-200, #e9ecef);
    }

    /* Dark Mode - Footer */
    [data-bs-theme="dark"] .footer-text {
        color: var(--fg-gray-400, #9ca3af);
        border-top-color: var(--fg-gray-700, #374151);
    }

    .footer-text a {
        color: #3A6FF7; /* Forge — Brand Blue */
        text-decoration: none;
        font-weight: var(--fg-font-weight-medium, 500);
    }

    .footer-text a:hover {
        color: #7B4DFF; /* Forge — Brand Purple */
        text-decoration: underline;
    }

    .error-message {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: var(--fg-error, #ef4444);
        padding: 12px 16px;
        border-radius: var(--fg-radius-md, 8px);
        margin-bottom: 20px;
        font-size: var(--fg-font-size-sm, 0.875rem);
    }

    /* Dark Mode - Error Message */
    [data-bs-theme="dark"] .error-message {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.4);
    }

    .forgot-password-link {
        text-align: right;
        margin-bottom: 20px;
        margin-top: -10px;
    }

    .forgot-password-link a {
        color: #3A6FF7; /* Forge — Brand Blue */
        text-decoration: none;
        font-size: var(--fg-font-size-sm, 0.875rem);
        font-weight: var(--fg-font-weight-medium, 500);
        transition: color 0.3s ease;
    }

    .forgot-password-link a:hover {
        color: #7B4DFF; /* Forge — Brand Purple */
        text-decoration: underline;
    }

    /* Dark Mode - Forgot Password Link */
    [data-bs-theme="dark"] .forgot-password-link a {
        color: #4C7DFF; /* Forge — Brand Blue dark */
    }
.footer-credit {
    margin-top: 8px;
}
