/* Spartan Account Forms */
.spartan-account-forms {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.account-tabs-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tabs */
.account-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}

.account-tab {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.account-tab:hover {
    color: #05307A;
    background: #f9fafb;
}

.account-tab.active {
    color: #05307A;
}

.account-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #05307A;
}

/* Tab Content */
.account-tab-content {
    display: none;
    padding: 40px;
}

.account-tab-content.active {
    display: block;
}

.account-tab-content h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Estilização dos campos de formulário */
.account-tab-content .woocommerce-form-row,
.account-tab-content .form-row {
    margin-bottom: 20px;
    width: 100% !important;
    float: none !important;
}

.account-tab-content .form-row-first,
.account-tab-content .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}

.account-tab-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.4;
}

.account-tab-content label .required {
    color: #dc2626;
    text-decoration: none;
}

.account-tab-content input[type="text"],
.account-tab-content input[type="password"],
.account-tab-content input[type="email"],
.account-tab-content input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: #111827;
    height: 48px; /* Altura fixa melhor */
}

.account-tab-content input[type="text"]:focus,
.account-tab-content input[type="password"]:focus,
.account-tab-content input[type="email"]:focus,
.account-tab-content input[type="tel"]:focus {
    border-color: #05307A;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(5, 48, 122, 0.1);
}

/* Melhorar o visual do botão de mostrar senha do WooCommerce */
.woocommerce-form-row {
    position: relative;
}

.woocommerce-password-strength {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.woocommerce-password-strength.short { color: #dc2626; }
.woocommerce-password-strength.bad { color: #dc2626; }
.woocommerce-password-strength.good { color: #d97706; }
.woocommerce-password-strength.strong { color: #059669; }

.woocommerce-password-hint {
    margin: 8px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    background: #f3f4f6;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Botões */
.account-tab-content button[type="submit"],
.account-tab-content .woocommerce-Button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #05307A 0%, #0a4fb8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.account-tab-content button[type="submit"]:hover,
.account-tab-content .woocommerce-Button:hover {
    background: linear-gradient(135deg, #0a4fb8 0%, #05307A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 48, 122, 0.3);
}

/* Checkbox "Lembrar-me" */
.account-tab-content .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.account-tab-content .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Link "Esqueceu a senha?" */
.account-tab-content .woocommerce-LostPassword {
    margin-top: 16px;
    text-align: center;
}

.account-tab-content .woocommerce-LostPassword a {
    color: #05307A;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.account-tab-content .woocommerce-LostPassword a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mensagens de erro */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.woocommerce-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.woocommerce-message {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.woocommerce-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .spartan-account-forms {
        padding: 20px 10px;
    }
    
    .account-tab-content {
        padding: 24px;
    }
    
    .account-tab-content h2 {
        font-size: 20px;
    }
    
    .account-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* My Account para usuários logados */
.woocommerce-MyAccount-navigation {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: #f0f4ff;
    color: #05307A;
}

.woocommerce-MyAccount-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
