 * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        color: #1f2937;
        overflow-x: hidden;
        background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
        color: var(--gray-800);
        line-height: 1.6;
        min-height: 100vh;
        background-image: url(../../images/Background.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    /* Container principal */
    .login-container {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 520px;
    }

    .login-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 24px;
        padding: 48px 48px 40px 48px;
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        max-width: 520px;
    }

    /* Header do login */
    .login-header {
        text-align: center;
        margin-bottom: 32px;
    }

    .logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .logo-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 16px;
        background: linear-gradient(135deg, #6b3e91, #ff8200);
        box-shadow: 0 8px 32px rgba(107, 62, 145, 0.3);
    }

    .logo-text {
        font-size: 28px;
        font-weight: 700;
        background: linear-gradient(135deg, #6b3e91, #ff8200);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .welcome-title {
        font-size: 24px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 8px;
    }

    .welcome-subtitle {
        font-size: 16px;
        color: #6b7280;
        font-weight: 400;
    }

    /* Formulário */
    .login-form {
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        margin-bottom: 8px;
    }

    .input-container {
        position: relative;
        display: flex;
        align-items: center;
    }

    .form-input {
        width: 100%;
        height: 48px;
        padding: 0 16px 0 48px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
        outline: none;
    }

    .form-input:focus {
        border-color: #6b3e91;
        box-shadow: 0 0 0 3px rgba(107, 62, 145, 0.1);
        background: rgba(255, 255, 255, 1);
    }

    .form-input::placeholder {
        color: #9ca3af;
    }

    .input-icon {
        position: absolute;
        left: 16px;
        width: 20px;
        height: 20px;
        color: #6b7280;
        z-index: 2;
    }

    .password-toggle {
        position: absolute;
        right: 16px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        border-radius: 6px;
        transition: all 0.2s ease;
        z-index: 2;
    }

    .password-toggle:hover {
        background: rgba(107, 62, 145, 0.1);
    }

    .eye-icon {
        width: 20px;
        height: 20px;
        color: #6b7280;
    }

    /* Select customizado */
    .select-container {
        position: relative;
    }

    .form-select {
        width: 100%;
        height: 48px;
        padding: 0 48px 0 16px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
        outline: none;
        appearance: none;
        cursor: pointer;
    }

    .form-select:focus {
        border-color: #6b3e91;
        box-shadow: 0 0 0 3px rgba(107, 62, 145, 0.1);
        background: rgba(255, 255, 255, 1);
    }

    .select-arrow {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        color: #6b7280;
        pointer-events: none;
    }

    /* Botões */
    .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-primary {
        background: linear-gradient(135deg, #6b3e91, #8b5cb5);
        color: white;
        box-shadow: 0 4px 15px rgba(107, 62, 145, 0.3);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(107, 62, 145, 0.4);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-secondary {
        background: linear-gradient(135deg, #ff8200, #ffb347);
        color: white;
        box-shadow: 0 4px 15px rgba(255, 130, 0, 0.3);
        margin-bottom: 16px;
    }

    .btn-secondary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 130, 0, 0.4);
    }

    .btn-ghost {
        background: transparent;
        color: #6b7280;
        border: 2px solid #e5e7eb;
    }

    .btn-ghost:hover:not(:disabled) {
        background: rgba(107, 62, 145, 0.05);
        border-color: #6b3e91;
        color: #6b3e91;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }

    .btn-loader {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .spinner {
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Divider */
    .divider {
        display: flex;
        align-items: center;
        margin: 24px 0;
        color: #9ca3af;
        font-size: 14px;
    }

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

    .divider span {
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.95);
    }

    /* Link de suporte */
    .support-link {
        text-align: center;
        margin-bottom: 24px;
    }

    .support-link p {
        font-size: 14px;
        color: #6b7280;
    }

    .support-link a {
        color: #6b3e91;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .support-link a:hover {
        color: #4c1d95;
        text-decoration: underline;
    }

    /* Modal */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 20px;
    }

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .modal {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 0;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        margin: 5vh 18vw;
        max-width: 65vw;
        display: block;
        max-height: 60vh;
        overflow-y: auto;
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

    .modal-overlay.active .modal {
        transform: scale(1);
    }

    .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 32px;
        border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    }

    .modal-header h3 {
        font-size: 20px;
        font-weight: 600;
        color: #1f2937;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(107, 62, 145, 0.1);
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .modal-close:hover {
        background: rgba(107, 62, 145, 0.2);
    }

    .modal-close svg {
        width: 16px;
        height: 16px;
        color: #6b3e91;
    }

    .modal-form {
        padding: 0% 10%;
    }

    .modal-actions {
        display: flex;
        gap: 12px;
        margin-top: 24px;
    }

    .modal-actions .btn {
        flex: 1;
    }

    /* Toast notifications */
    .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .toast {
        background: white;
        border-radius: 12px;
        padding: 16px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-left: 4px solid;
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 300px;
        transform: translateX(400px);
        transition: all 0.3s ease;
    }

    .toast.show {
        transform: translateX(0);
    }

    .toast.success {
        border-left-color: #22c55e;
    }

    .toast.error {
        border-left-color: #ef4444;
    }

    .toast-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .toast.success .toast-icon {
        color: #22c55e;
    }

    .toast.error .toast-icon {
        color: #ef4444;
    }

    .toast-message {
        flex: 1;
        font-size: 14px;
        font-weight: 500;
        color: #1f2937;
    }

    .toast-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        transition: background 0.2s ease;
    }

    .toast-close:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .toast-close svg {
        width: 16px;
        height: 16px;
        color: #6b7280;
    }
    @media (max-height: 1000px) {
        .modal {
            max-height: 95%;
            max-width: 95%;
            margin: 2%;      
        }

    }
    /* Responsive */
    @media (max-width: 700px) {
        .login-card {
            padding: 20px 8px 24px 8px;
            border-radius: 16px;
            max-width: 98vw;
        }

        .logo-text {
            font-size: 24px;
        }

        .welcome-title {
            font-size: 20px;
        }

        .modal {
            max-height: 95%;
            max-width: 95%;
            margin: 2%;          
        }

        .modal-actions {
            flex-direction: column;
        }

        .toast {
            min-width: auto;
            margin: 0 8px;
        }

        .toast-container {
            left: 0;
            right: 0;
            top: 16px;
        }
        .login-container {
            max-width: 100vw;
        }
    }
    @media (max-width: 400px) {
        .login-card {
            padding: 8px 2vw 16px 2vw;
        }
    }

    /* Animações de entrada */
    .login-card {
        animation: slideUp 0.6s ease;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Estados de focus melhorados */
    .form-input:focus,
    .form-select:focus {
        transform: translateY(-1px);
    }

    /* Hover states para mobile */
    @media (hover: hover) {
        .btn:hover:not(:disabled) {
            transform: translateY(-2px);
        }
    }