        :root {
            --deep-teal: #1a4d4c;
            --sage-green: #7b9c8c;
            --warm-sand: #e5d9cc;
            --off-white: #f8f6f2;
            --charcoal: #2d2f31;
            --stone-gray: #6b6f72;
            --clay-red: #c45d42;
            --cream: #fff9f0;
            --fog: #e8ecef;
            --light-clay: #f0e4dd;
            --bg: var(--off-white);
            --card: var(--cream);
            --muted: var(--stone-gray);
            --accent: var(--deep-teal);
            --accent-600: #0e3a39;
            --glass: rgba(255, 255, 255, 0.9);
            --radius: 0px;
            --radius-sm: 0px;
            --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
            --max-width: 1400px;
            --font: 'Inter', system-ui, -apple-system, sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font);
            background: linear-gradient(135deg, var(--off-white) 0%, #f0e9e0 100%);
            color: var(--charcoal);
            line-height: 1.5;
            min-height: 100vh;
            font-weight: 400;
            letter-spacing: -0.01em;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
        }

        /* Language selector no topo direito */
        .language-top-right {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
        }

        #language-select-top {
            padding: 6px 12px;
            border: 2px solid var(--deep-teal);
            background: transparent;
            font-weight: 600;
            font-size: 0.8rem;
            text-transform: uppercase;
            cursor: pointer;
            outline: none;
            color: var(--deep-teal);
            margin-left: 10px;
            font-family: var(--font);
        }

        #language-select-top:hover {
            background: rgba(26, 77, 76, 0.03);
        }

        .auth-container {
            max-width: 480px;
            width: 100%;
            background: white;
            border: 3px solid var(--deep-teal);
            box-shadow: 10px 10px 0 var(--light-clay);
            padding: 45px 40px;
            position: relative;
            animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .auth-container::before {
            content: '';
            position: absolute;
            top: -5px;
            left: -5px;
            right: 5px;
            bottom: 5px;
            border: 1px solid var(--light-clay);
            pointer-events: none;
            z-index: -1;
        }

        .logo-section {
            text-align: center;
            margin-bottom: 35px;
        }

        .profile-initials {
            width: 80px;
            height: 80px;
            background: var(--deep-teal);
            color: white;
            font-size: 32px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            border: none;
            box-shadow: 5px 5px 0 var(--clay-red);
            transition: all 0.3s ease;
        }

        .profile-initials:hover {
            transform: translate(-2px, -2px);
            box-shadow: 7px 7px 0 var(--clay-red);
        }

        .logo-section h1 {
            font-size: 2rem;
            color: var(--deep-teal);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            margin-bottom: 5px;
            line-height: 1.2;
        }

        .auth-tabs {
            display: flex;
            margin-bottom: 35px;
            border-bottom: 3px solid var(--deep-teal);
            position: relative;
        }

        .auth-tab {
            flex: 1;
            text-align: center;
            padding: 15px 0;
            font-weight: 700;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--stone-gray);
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 3px solid transparent;
            margin-bottom: -3px;
        }

        .auth-tab:hover {
            color: var(--deep-teal);
            background: rgba(26, 77, 76, 0.03);
        }

        .auth-tab.active {
            color: var(--deep-teal);
            border-bottom-color: var(--clay-red);
            animation: pulse 0.3s ease;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.02); }
        }

        .auth-form {
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .auth-form.active {
            display: block;
            opacity: 1;
            animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes fadeIn {
            from { 
                opacity: 0; 
                transform: translateY(15px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }

        .form-group {
            margin-bottom: 22px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 700;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--deep-teal);
        }

        .form-group input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--deep-teal);
            background: white;
            font-family: var(--font);
            font-size: 1rem;
            transition: all 0.2s ease;
            color: var(--charcoal);
        }

        .form-group input:focus {
            outline: none;
            background: var(--off-white);
            transform: translate(-3px, -3px);
            box-shadow: 5px 5px 0 var(--light-clay);
        }

        .form-group input::placeholder {
            color: var(--stone-gray);
            opacity: 0.4;
            font-size: 0.9rem;
        }

        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 30px white inset;
            -webkit-text-fill-color: var(--charcoal);
            border: 2px solid var(--deep-teal);
        }

        button {
            width: 100%;
            padding: 16px;
            background: var(--deep-teal);
            color: white;
            border: 2px solid var(--deep-teal);
            font-weight: 700;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 15px;
            box-shadow: 5px 5px 0 var(--light-clay);
            font-family: var(--font);
        }

        button:hover {
            background: transparent;
            color: var(--deep-teal);
            transform: translate(-3px, -3px);
            box-shadow: 7px 7px 0 var(--clay-red);
        }

        button:active {
            transform: translate(0, 0);
            box-shadow: 2px 2px 0 var(--light-clay);
        }

        button.loading {
            position: relative;
            color: transparent !important;
            pointer-events: none;
        }

        button.loading::after {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: 2px solid white;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        button.loading:hover::after {
            border-color: var(--deep-teal);
            border-top-color: transparent;
        }

        @keyframes spin {
            from { transform: translate(-50%, -50%) rotate(0deg); }
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .divider {
            position: relative;
            text-align: center;
            margin: 30px 0 20px;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--deep-teal), var(--clay-red), var(--deep-teal), transparent);
            transform: translateY(-50%);
            opacity: 0.3;
        }

        .divider span {
            position: relative;
            background: white;
            padding: 0 20px;
            color: var(--stone-gray);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 600;
        }

        .google-login-section {
            margin-top: 20px;
            display: flex;
            justify-content: center;
        }

        .g_id_signin {
            width: 100%;
            max-width: 280px;
        }

        .g_id_signin > div {
            border: 2px solid var(--deep-teal) !important;
            border-radius: 0 !important;
            transition: all 0.2s ease !important;
            width: 100% !important;
        }

        .g_id_signin > div:hover {
            transform: translate(-3px, -3px) !important;
            box-shadow: 5px 5px 0 var(--light-clay) !important;
        }

        .g_id_signin iframe {
            border-radius: 0 !important;
        }

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            animation: overlayIn 0.3s ease;
        }

        @keyframes overlayIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: white;
            max-width: 420px;
            width: 90%;
            border: 4px solid var(--deep-teal);
            box-shadow: 12px 12px 0 var(--clay-red);
            padding: 35px;
            animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes modalIn {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .modal-content h3 {
            font-size: 1.8rem;
            color: var(--deep-teal);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            margin-bottom: 15px;
            text-align: center;
            line-height: 1.2;
        }

        .modal-content p {
            color: var(--stone-gray);
            font-size: 1rem;
            margin-bottom: 30px;
            text-align: center;
            line-height: 1.6;
        }

        .modal-buttons {
            display: flex;
            gap: 15px;
        }

        .modal-buttons button {
            margin: 0;
            padding: 14px;
            font-size: 0.9rem;
        }

        .modal-buttons button:first-child {
            background: var(--deep-teal);
            color: white;
            border: 2px solid var(--deep-teal);
        }

        .modal-buttons button:first-child:hover {
            background: transparent;
            color: var(--deep-teal);
            box-shadow: 5px 5px 0 var(--clay-red);
        }

        .modal-buttons button:last-child {
            background: transparent;
            color: var(--stone-gray);
            border: 2px solid var(--stone-gray);
            box-shadow: none;
        }

        .modal-buttons button:last-child:hover {
            background: var(--stone-gray);
            color: white;
            border-color: var(--stone-gray);
            transform: translate(-3px, -3px);
            box-shadow: 5px 5px 0 var(--light-clay);
        }

        .error-message {
            margin-top: 10px;
            padding: 10px 15px;
            color: var(--clay-red);
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: rgba(196, 93, 66, 0.08);
            border-left: 4px solid var(--clay-red);
            animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            15% { transform: translateX(-5px); }
            30% { transform: translateX(5px); }
            45% { transform: translateX(-3px); }
            60% { transform: translateX(3px); }
            75% { transform: translateX(-1px); }
            90% { transform: translateX(1px); }
        }

        .back-to-site {
            text-align: center;
            margin-top: 25px;
        }

        .back-to-site a {
            color: var(--stone-gray);
            text-decoration: none;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
            display: inline-block;
            padding: 5px 0;
        }

        .back-to-site a:hover {
            color: var(--deep-teal);
            border-bottom-color: var(--deep-teal);
            transform: translateY(-2px);
        }

        button:focus-visible,
        input:focus-visible {
            outline: 3px solid var(--clay-red);
            outline-offset: 2px;
        }

        .form-group input:invalid:not(:placeholder-shown) {
            border-color: var(--clay-red);
            background: rgba(196, 93, 66, 0.02);
        }

        @media (max-width: 600px) {
            body {
                padding: 15px;
            }
            
            
            .auth-container {
                padding: 35px 25px;
                box-shadow: 8px 8px 0 var(--light-clay);
            }
            
            .profile-initials {
                width: 70px;
                height: 70px;
                font-size: 28px;
                box-shadow: 4px 4px 0 var(--clay-red);
            }
            
            .logo-section h1 {
                font-size: 1.8rem;
            }
            
            .auth-tab {
                padding: 12px 0;
                font-size: 0.85rem;
            }
            
            .form-group input {
                padding: 12px 14px;
            }
            
            button {
                padding: 14px;
            }
            
            .modal-buttons {
                flex-direction: column;
                gap: 12px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            .auth-container {
                padding: 30px 20px;
                box-shadow: 6px 6px 0 var(--light-clay);
            }
            
            .profile-initials {
                width: 65px;
                height: 65px;
                font-size: 26px;
            }
            
            .logo-section h1 {
                font-size: 1.6rem;
            }
            
            .auth-tab {
                padding: 10px 0;
                font-size: 0.8rem;
            }
            
            .form-group {
                margin-bottom: 18px;
            }
            
            .form-group label {
                font-size: 0.75rem;
                margin-bottom: 6px;
            }
            
            .form-group input {
                padding: 11px 12px;
                font-size: 0.95rem;
            }
            
            button {
                padding: 13px;
                font-size: 0.85rem;
                margin-top: 12px;
            }
            
            .divider {
                margin: 25px 0 15px;
            }
            
            .divider span {
                font-size: 0.75rem;
                padding: 0 15px;
            }
            
            .google-login-section {
                margin-top: 15px;
            }
            
            .g_id_signin {
                max-width: 240px;
            }
            
            .modal-content {
                padding: 25px;
            }
            
            .modal-content h3 {
                font-size: 1.5rem;
            }
            
            .modal-content p {
                font-size: 0.9rem;
                margin-bottom: 25px;
            }
            
            .modal-buttons button {
                padding: 12px;
                font-size: 0.85rem;
            }
            
            .back-to-site {
                margin-top: 20px;
            }
            
            .back-to-site a {
                font-size: 0.75rem;
            }
        }

        @media (max-width: 360px) {
            .auth-container {
                padding: 25px 15px;
            }
            
            .logo-section h1 {
                font-size: 1.4rem;
            }
            
            .profile-initials {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }
            
            .auth-tab {
                font-size: 0.75rem;
                padding: 8px 0;
            }
            
            .form-group input {
                padding: 10px;
                font-size: 0.9rem;
            }
            
            button {
                padding: 12px;
                font-size: 0.8rem;
            }
        }

        @media (max-width: 380px) {
            .g_id_signin > div {
                transform: scale(0.9);
            }
            
            .g_id_signin > div:hover {
                transform: scale(0.9) translate(-2px, -2px) !important;
            }
        }

        .auth-container::after {
            content: '';
            position: absolute;
            bottom: -15px;
            right: -15px;
            width: 30px;
            height: 30px;
            background: var(--clay-red);
            opacity: 0.1;
            z-index: -2;
        }

        .form-group input:focus {
            background: linear-gradient(135deg, white, var(--off-white));
        }