* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-50: #faf7f2;
            --primary-100: #f0e9e0;
            --primary-200: #e8d9c5;
            --primary-300: #d4b48c;
            --primary-400: #b78c5a;
            --primary-500: #8b5a2b;
            --primary-600: #6b431f;
            --primary-700: #4b3016;
            
            --neutral-50: #ffffff;
            --neutral-100: #f8f9fa;
            --neutral-200: #e9ecef;
            --neutral-300: #dee2e6;
            --neutral-400: #ced4da;
            --neutral-500: #adb5bd;
            --neutral-600: #6c757d;
            --neutral-700: #495057;
            --neutral-800: #343a40;
            --neutral-900: #212529;
            
            --success: #10b981;
            --danger: #ef4444;
            --danger-light: #fee2e2;
            --warning: #f59e0b;
            --info: #3b82f6;
            
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
            --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
            
            --border-radius-sm: 8px;
            --border-radius-md: 12px;
            --border-radius-lg: 20px;
            --border-radius-xl: 30px;
            --border-radius-full: 9999px;
            
            --transition: 0.2s ease;
            --transition-slow: 0.3s ease;
            
            --font-sans: 'Inter', sans-serif;
            --font-serif: 'Playfair Display', serif;
        }

        [data-theme="dark"] {
            --primary-50: #1a1a1a;
            --primary-100: #2d2d2d;
            --primary-200: #404040;
            --primary-300: #606060;
            --primary-400: #d4b48c;
            --primary-500: #e8d9c5;
            --primary-600: #f0e9e0;
            
            --neutral-50: #1e1e1e;
            --neutral-100: #2d2d2d;
            --neutral-200: #404040;
            --neutral-300: #606060;
            --neutral-400: #808080;
            --neutral-500: #a0a0a0;
            --neutral-600: #c0c0c0;
            --neutral-700: #e0e0e0;
            --neutral-800: #f0f0f0;
            --neutral-900: #ffffff;
            
            --danger: #dc2626;
            --success: #059669;
        }

        body {
            font-family: var(--font-sans);
            background: linear-gradient(145deg, var(--primary-50), var(--primary-100));
            color: var(--neutral-800);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow-x: hidden;
            padding: 1rem;
            transition: background var(--transition), color var(--transition);
        }

        /* Logo de fundo animada */
        body::before {
            content: '';
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: min(80vw, 600px);
            height: min(80vh, 600px);
            background-image: url('../assets/icons/logo1.png');
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0.03;
            pointer-events: none;
            z-index: 0;
            animation: floatLogo 20s ease-in-out infinite;
        }

        @keyframes floatLogo {
            0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.03; }
            50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.05; }
        }

        /* Partículas flutuantes */
        .particle {
            position: fixed;
            width: 4px;
            height: 4px;
            background: var(--primary-400);
            border-radius: 50%;
            opacity: 0.1;
            pointer-events: none;
            animation: floatParticle 15s linear infinite;
        }

        @keyframes floatParticle {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% { opacity: 0.2; }
            90% { opacity: 0.2; }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Container principal */
        .login-wrapper {
            width: 100%;
            max-width: 450px;
            position: relative;
            z-index: 10;
            animation: fadeInUp 0.6s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Card de login */
        .login-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 2.5rem 2rem;
            border-radius: var(--border-radius-xl);
            box-shadow: var(--shadow-xl);
            border: 1px solid rgba(139, 90, 43, 0.1);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .login-card {
            background: rgba(30, 30, 30, 0.95);
        }

        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-300), var(--primary-500), var(--primary-300));
            opacity: 0.5;
        }

        .login-card::after {
            content: '✡';
            position: absolute;
            bottom: -20px;
            right: -20px;
            font-size: 8rem;
            color: var(--primary-400);
            opacity: 0.03;
            transform: rotate(15deg);
            pointer-events: none;
        }

        /* Logo */
        .logo-wrapper {
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
        }

        .logo {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            background: white;
            padding: 10px;
            box-shadow: var(--shadow-lg);
            transition: transform var(--transition-slow);
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .logo:hover {
            transform: scale(1.05) rotate(5deg);
        }

        .logo-glow {
            position: absolute;
            top: -5px;
            left: -5px;
            right: -5px;
            bottom: -5px;
            background: radial-gradient(circle at center, var(--primary-300), transparent 70%);
            border-radius: 50%;
            opacity: 0.3;
            animation: pulseGlow 2s infinite;
            z-index: -1;
        }

        @keyframes pulseGlow {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.05); }
        }

        /* Títulos */
        h1 {
            font-family: var(--font-serif);
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary-600);
            margin-bottom: 0.25rem;
            letter-spacing: -0.5px;
        }

        .subtitle {
            color: var(--neutral-500);
            font-size: 0.95rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .subtitle i {
            color: var(--primary-400);
            font-size: 0.9rem;
        }

        /* Mensagem de erro */
        .error-box {
            background: linear-gradient(145deg, var(--danger-light), #fff);
            color: var(--danger);
            padding: 1rem 1.2rem;
            margin-bottom: 1.5rem;
            border-radius: var(--border-radius-md);
            border-left: 4px solid var(--danger);
            display: flex;
            align-items: center;
            gap: 0.8rem;
            text-align: left;
            font-weight: 500;
            animation: shake 0.5s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        .error-box i {
            font-size: 1.2rem;
        }

        /* Formulário */
        form {
            text-align: left;
        }

        .input-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .input-group label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--primary-600);
            margin-bottom: 0.5rem;
        }

        .input-group label i {
            color: var(--primary-400);
            font-size: 1rem;
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--neutral-400);
            font-size: 1rem;
            transition: color var(--transition);
        }

        .input-wrapper input {
            width: 100%;
            padding: 0.8rem 1rem 0.8rem 2.5rem;
            border: 2px solid var(--primary-100);
            border-radius: var(--border-radius-md);
            font-family: var(--font-sans);
            font-size: 0.95rem;
            background: var(--neutral-50);
            color: var(--neutral-800);
            transition: all var(--transition);
            outline: none;
        }

        [data-theme="dark"] .input-wrapper input {
            background: var(--neutral-100);
            border-color: var(--primary-200);
            color: var(--neutral-900);
        }

        .input-wrapper input:hover {
            border-color: var(--primary-300);
        }

        .input-wrapper input:focus {
            border-color: var(--primary-400);
            box-shadow: 0 0 0 4px rgba(139, 90, 43, 0.1);
        }

        .input-wrapper input:focus + i {
            color: var(--primary-400);
        }

        /* Botão de mostrar senha */
        .toggle-password {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--neutral-400);
            cursor: pointer;
            padding: 0.25rem;
            transition: color var(--transition);
            z-index: 2;
        }

        .toggle-password:hover {
            color: var(--primary-400);
        }

        /* Botão de submit */
        button[type="submit"] {
            width: 100%;
            padding: 0.9rem;
            border: none;
            border-radius: var(--border-radius-full);
            background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-slow);
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
            margin-top: 0.5rem;
        }

        button[type="submit"]::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        button[type="submit"]:hover::before {
            width: 300px;
            height: 300px;
        }

        button[type="submit"]:hover {
            background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

        button[type="submit"]:active {
            transform: translateY(-1px);
        }

        button[type="submit"] i {
            margin-right: 0.5rem;
            transition: transform var(--transition);
        }

        button[type="submit"]:hover i {
            transform: translateX(3px);
        }

        /* Links */
        .back-home {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1.5rem;
            color: var(--primary-500);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: all var(--transition);
            padding: 0.5rem 1rem;
            border-radius: var(--border-radius-full);
            background: var(--primary-50);
            border: 1px solid var(--primary-200);
        }

        .back-home:hover {
            background: var(--primary-100);
            color: var(--primary-600);
            transform: translateX(-3px);
            box-shadow: var(--shadow-sm);
        }

        .back-home i {
            transition: transform var(--transition);
        }

        .back-home:hover i {
            transform: translateX(-3px);
        }

        /* Footer */
        .footer {
            margin-top: 2rem;
            font-size: 0.85rem;
            color: var(--neutral-500);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            border-top: 1px solid var(--primary-100);
            padding-top: 1.5rem;
        }

        .footer i {
            color: var(--danger);
            animation: heartBeat 1.5s ease infinite;
        }

        @keyframes heartBeat {
            0%, 100% { transform: scale(1); }
            25% { transform: scale(1.1); }
            50% { transform: scale(1); }
            75% { transform: scale(1.05); }
        }

        /* Contador de tentativas (opcional) */
        .attempts-counter {
            font-size: 0.8rem;
            color: var(--neutral-400);
            margin-top: 0.5rem;
            text-align: right;
        }

        .attempts-counter.warning {
            color: var(--warning);
        }

        /* Responsividade */
        @media (max-width: 768px) {
            .login-card {
                padding: 2rem 1.5rem;
            }

            h1 {
                font-size: 1.6rem;
            }

            .logo {
                width: 70px;
                height: 70px;
            }
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 1.8rem 1.2rem;
            }

            h1 {
                font-size: 1.4rem;
            }

            .subtitle {
                font-size: 0.9rem;
                flex-direction: column;
                gap: 0.2rem;
            }

            .input-wrapper input {
                padding: 0.7rem 1rem 0.7rem 2.3rem;
                font-size: 0.9rem;
            }

            button[type="submit"] {
                padding: 0.8rem;
            }

            .back-home {
                width: 100%;
                justify-content: center;
            }
        }

        @media (max-width: 360px) {
            .login-card {
                padding: 1.5rem 1rem;
            }

            .footer {
                flex-direction: column;
                gap: 0.2rem;
            }
        }

        /* Landscape em dispositivos móveis */
        @media (orientation: landscape) and (max-height: 600px) {
            body {
                align-items: flex-start;
                padding: 1rem;
            }

            .login-wrapper {
                margin: 1rem auto;
            }

            .login-card {
                padding: 1.5rem;
            }

            .logo {
                width: 50px;
                height: 50px;
            }

            h1 {
                font-size: 1.3rem;
            }

            .subtitle {
                margin-bottom: 1rem;
            }

            .input-group {
                margin-bottom: 1rem;
            }
        }

        /* Scrollbar personalizada */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--primary-100);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-400);
            border-radius: var(--border-radius-full);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-500);
        }

        /* Foco visível para acessibilidade */
        :focus-visible {
            outline: 3px solid var(--primary-400);
            outline-offset: 2px;
        }

        /* Seleção de texto */
        ::selection {
            background: var(--primary-300);
            color: var(--primary-900);
        }