/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matching the logo */
    --color-black: #000000;
    --color-gold: #D4AF37;
    --color-gold-light: #E5C158;
    --color-gold-dark: #B8960E;
    --color-cream: #F5F5DC;
    --color-white: #FFFFFF;
    --color-gray: #333333;
    --color-gray-light: #666666;
    
    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* ============================================
   BACKGROUND DECORATIONS
   ============================================ */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.1), transparent),
        radial-gradient(ellipse at bottom left, rgba(212, 175, 55, 0.05), transparent),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.02) 2px,
            rgba(212, 175, 55, 0.02) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.ornament {
    position: fixed;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    pointer-events: none;
    z-index: 0;
}

.ornament-top-left {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.ornament-bottom-right {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   LOGIN CONTAINER
   ============================================ */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

/* ============================================
   LOGIN BOX
   ============================================ */
.login-box {
    padding: 60px 50px;
    position: relative;
}

/* Logo */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.logo-image {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: var(--color-gold);
}

.logo i {
    font-size: 32px;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.header-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.header-ornament .line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}

.header-ornament i {
    color: var(--color-gold);
    font-size: 16px;
}

/* Welcome Text */
.welcome-text {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--color-cream);
    margin-bottom: 10px;
}

.welcome-text p {
    color: var(--color-cream);
    opacity: 0.8;
    font-size: 15px;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border-color: var(--color-gold);
    color: var(--color-black);
}

/* ============================================
   FORMS
   ============================================ */
.form-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-container.active {
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(212, 175, 55, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
}

.form-group label {
    position: absolute;
    left: 50px;
    top: 15px;
    color: var(--color-cream);
    opacity: 0.6;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 45px;
    font-size: 12px;
    color: var(--color-gold);
    background: var(--color-black);
    padding: 0 5px;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gold);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--color-gold-light);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-cream);
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-black);
    font-size: 12px;
}

.forgot-password,
.terms-link {
    color: var(--color-gold);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password:hover,
.terms-link:hover {
    color: var(--color-gold-light);
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-gold);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-black);
    border-color: var(--color-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}


/* ============================================
   QUICK CONTACT
   ============================================ */
.quick-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.quick-contact p {
    color: var(--color-cream);
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 14px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #25D366;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

/* ============================================
   INFO PANEL
   ============================================ */
.info-panel {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    text-align: center;
}

.info-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.info-icon i {
    font-size: 50px;
    color: var(--color-black);
}

.info-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--color-cream);
    margin-bottom: 15px;
}

.info-content > p {
    color: var(--color-cream);
    opacity: 0.9;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
}

/* Features List */
.features-list {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.feature-item i {
    color: var(--color-gold);
    font-size: 20px;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--color-cream);
    font-size: 15px;
}

/* Contact Info */
.contact-info {
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.contact-item i {
    color: var(--color-gold);
    font-size: 18px;
    width: 25px;
    flex-shrink: 0;
}

.contact-item span {
    color: var(--color-cream);
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .info-panel {
        border-left: none;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
    }

    .login-box,
    .info-panel {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .back-button {
        top: 15px;
        left: 15px;
        padding: 10px 20px;
        font-size: 12px;
    }

    .ornament {
        display: none;
    }

    .login-box,
    .info-panel {
        padding: 40px 30px;
    }

    .logo {
        font-size: 28px;
    }

    .logo i {
        font-size: 24px;
    }

    .welcome-text h1 {
        font-size: 28px;
    }

    .tabs {
        flex-direction: column;
    }


    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-content h2 {
        font-size: 26px;
    }

    .info-icon {
        width: 80px;
        height: 80px;
    }

    .info-icon i {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .login-box,
    .info-panel {
        padding: 30px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .welcome-text h1 {
        font-size: 24px;
    }

    .tab-button {
        font-size: 12px;
        padding: 12px 15px;
    }

    .form-group input {
        font-size: 14px;
        padding: 14px 15px 14px 45px;
    }

    .form-group label {
        font-size: 14px;
        left: 45px;
    }

    .btn {
        font-size: 13px;
        padding: 13px 25px;
    }
}

/* ============================================
   MODAL DE PRIMEIRO ACESSO - MODERNO
   ============================================ */
.first-access-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.first-access-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.first-access-modal {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px;
    border: 2px solid var(--color-gold);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.first-access-modal-overlay.active .first-access-modal {
    transform: scale(1) translateY(0);
}

/* Scrollbar customizada */
.first-access-modal::-webkit-scrollbar {
    width: 8px;
}

.first-access-modal::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
}

.first-access-modal::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 10px;
}

.first-access-modal::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-light);
}

/* Ícone do modal */
.first-access-modal-icon {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-black);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
    animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
    0% {
        transform: translateX(-50%) scale(0) rotate(-180deg);
    }
    60% {
        transform: translateX(-50%) scale(1.1) rotate(10deg);
    }
    100% {
        transform: translateX(-50%) scale(1) rotate(0);
    }
}

.first-access-modal-icon i {
    font-size: 26px;
    color: var(--color-black);
}

/* Header do modal */
.first-access-modal-header {
    padding: 60px 25px 22px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 10px;
}

.first-access-modal-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 10px;
}

.first-access-modal-header p {
    font-size: 13px;
    color: var(--color-cream);
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.5;
    margin-top: 0;
    padding: 0 10px;
}

/* Body do modal */
.first-access-modal-body {
    padding: 30px 35px 35px;
}

.first-access-modal-body form {
    width: 100%;
    display: block;
}

.welcome-message {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-left: 4px solid var(--color-gold);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.welcome-message i {
    color: var(--color-gold);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.welcome-message p {
    color: var(--color-cream);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Form grupos - RESET COMPLETO para modal */
.first-access-modal-body .form-group {
    margin-bottom: 22px !important;
    position: relative !important;
}

.first-access-modal-body .form-group:last-of-type {
    margin-bottom: 28px !important;
}

.first-access-modal-body .form-group label {
    display: block !important;
    position: static !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-gold) !important;
    margin-bottom: 10px !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

.first-access-modal-body .form-group label i {
    font-size: 13px !important;
    margin-right: 8px !important;
    display: inline !important;
    position: static !important;
}

.first-access-modal-body .form-group label span {
    display: inline !important;
    vertical-align: middle !important;
}

/* Wrapper do input de senha - RESET COMPLETO */
.password-input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.password-input-wrapper input {
    width: 100% !important;
    padding: 14px 50px 14px 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 10px !important;
    color: var(--color-cream) !important;
    font-size: 14px !important;
    font-family: var(--font-body) !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    display: block !important;
    box-sizing: border-box !important;
}

.password-input-wrapper input::placeholder {
    color: rgba(245, 245, 220, 0.5) !important;
    font-size: 13px !important;
}

.password-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--color-gold) !important;
    box-shadow: 
        0 0 0 3px rgba(212, 175, 55, 0.1),
        0 3px 15px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Garantir que labels no modal NÃO se movam no focus */
.password-input-wrapper input:focus + label,
.password-input-wrapper input:not(:placeholder-shown) + label {
    position: static !important;
    top: auto !important;
    left: auto !important;
    font-size: 13px !important;
    background: transparent !important;
}

/* RESET COMPLETO para modal - Sobrescrever todos os estilos do form de login */
.first-access-modal .form-group .input-icon {
    display: none !important;
}

#first-password-form .form-group {
    position: relative !important;
}

#first-password-form .form-group label {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-gold) !important;
    margin-bottom: 10px !important;
    background: transparent !important;
    padding: 0 !important;
}

#first-password-form .form-group input:focus + label,
#first-password-form .form-group input:not(:placeholder-shown) + label {
    position: static !important;
    top: auto !important;
    left: auto !important;
    font-size: 13px !important;
    background: transparent !important;
    opacity: 1 !important;
}

/* ISOLAMENTO TOTAL DO MODAL */
.first-access-modal-overlay .form-group label,
.first-access-modal .form-group label,
#first-password-modal .form-group label {
    all: unset !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #D4AF37 !important;
    margin-bottom: 10px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.5 !important;
    cursor: default !important;
}

.first-access-modal-overlay .form-group label i,
.first-access-modal .form-group label i,
#first-password-modal .form-group label i {
    all: unset !important;
    font-size: 13px !important;
    margin-right: 8px !important;
    color: #D4AF37 !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.first-access-modal-overlay .form-group label span,
.first-access-modal .form-group label span,
#first-password-modal .form-group label span {
    all: unset !important;
    display: inline !important;
    vertical-align: middle !important;
}

/* RESET DO FORM-HINT */
.first-access-modal-overlay .form-hint,
.first-access-modal .form-hint,
#first-password-modal .form-hint {
    all: unset !important;
    display: block !important;
    font-size: 11px !important;
    color: rgba(245, 245, 220, 0.6) !important;
    margin-top: 8px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.first-access-modal-overlay .form-hint i,
.first-access-modal .form-hint i,
#first-password-modal .form-hint i {
    all: unset !important;
    font-size: 12px !important;
    color: #D4AF37 !important;
    margin-right: 6px !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.first-access-modal-overlay .form-hint span,
.first-access-modal .form-hint span,
#first-password-modal .form-hint span {
    all: unset !important;
    display: inline !important;
    vertical-align: middle !important;
}

/* Botão de toggle senha */
.toggle-password-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-gold);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    opacity: 0.6;
    border-radius: 8px;
    z-index: 10;
}

.toggle-password-btn:hover {
    opacity: 1;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Hint do formulário - RESET COMPLETO */
.form-hint {
    display: block !important;
    position: static !important;
    font-size: 11px !important;
    color: rgba(245, 245, 220, 0.6) !important;
    margin-top: 8px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

.form-hint i {
    font-size: 12px !important;
    color: var(--color-gold) !important;
    margin-right: 6px !important;
    position: static !important;
    display: inline !important;
}

.form-hint span {
    display: inline !important;
    vertical-align: middle !important;
}

/* Botão de submit */
.submit-password-btn {
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.submit-password-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-password-btn:hover::before {
    left: 100%;
}

.submit-password-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-password-btn:active {
    transform: translateY(-1px);
}

.submit-password-btn i {
    font-size: 20px;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .first-access-modal {
        border-radius: 18px;
        max-width: 95%;
        margin: 10px;
    }
    
    .first-access-modal-icon {
        width: 70px;
        height: 70px;
        top: -35px;
    }
    
    .first-access-modal-icon i {
        font-size: 28px;
    }
    
    .first-access-modal-header {
        padding: 50px 20px 25px;
    }
    
    .first-access-modal-header h2 {
        font-size: 21px;
        line-height: 1.4;
        padding: 0 5px;
    }
    
    .first-access-modal-header p {
        font-size: 12px;
    }
    
    .first-access-modal-body {
        padding: 25px 20px 30px;
    }
    
    .welcome-message {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .welcome-message i {
        font-size: 18px;
        margin-top: 1px;
    }
    
    .welcome-message p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .password-input-wrapper input {
        padding: 13px 45px 13px 14px !important;
        font-size: 14px !important;
    }
    
    .password-input-wrapper input::placeholder {
        font-size: 12px !important;
    }
    
    .submit-password-btn {
        padding: 15px 24px;
        font-size: 14px;
        gap: 8px;
    }
    
    .first-access-modal-body .form-group {
        margin-bottom: 20px !important;
    }
    
    .first-access-modal-body .form-group label {
        font-size: 12px !important;
        margin-bottom: 9px !important;
        position: static !important;
        display: block !important;
    }
    
    .form-hint {
        font-size: 10px !important;
        margin-top: 7px !important;
        position: static !important;
    }
}

@media (max-width: 480px) {
    .first-access-modal-overlay {
        padding: 12px;
    }
    
    .first-access-modal {
        border-radius: 16px;
        max-width: 100%;
    }
    
    .first-access-modal-icon {
        width: 65px;
        height: 65px;
        top: -32px;
    }
    
    .first-access-modal-icon i {
        font-size: 26px;
    }
    
    .first-access-modal-header {
        padding: 45px 18px 20px;
    }
    
    .first-access-modal-header h2 {
        font-size: 18px;
        line-height: 1.5;
        word-break: break-word;
        padding: 0;
    }
    
    .first-access-modal-header p {
        font-size: 11px;
        line-height: 1.5;
    }
    
    .first-access-modal-body {
        padding: 20px 18px 25px;
    }
    
    .welcome-message {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .welcome-message i {
        font-size: 16px;
    }
    
    .welcome-message p {
        font-size: 11px;
        line-height: 1.5;
    }
    
    .password-input-wrapper input {
        padding: 12px 42px 12px 13px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
    
    .password-input-wrapper input::placeholder {
        font-size: 12px !important;
    }
    
    .toggle-password-btn {
        right: 12px;
        font-size: 16px;
        padding: 6px;
    }
    
    .submit-password-btn {
        padding: 14px 20px;
        font-size: 13px;
        gap: 8px;
        letter-spacing: 0.6px;
        border-radius: 8px;
    }
    
    .submit-password-btn i {
        font-size: 16px;
    }
    
    .first-access-modal-body .form-group {
        margin-bottom: 18px !important;
    }
    
    .first-access-modal-body .form-group label {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        position: static !important;
        display: block !important;
    }
    
    .first-access-modal-body .form-group label i {
        font-size: 12px !important;
        margin-right: 6px !important;
        position: static !important;
    }
    
    .form-hint {
        font-size: 10px !important;
        margin-top: 6px !important;
        position: static !important;
    }
    
    .form-hint i {
        font-size: 11px !important;
        margin-right: 5px !important;
        position: static !important;
    }
}

/* Animação de carregamento no botão */
.submit-password-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-password-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-black);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

