/**
 * 🎨 APATHANY - Sistema de Autenticação
 * Estilos modernos para login, registro e completar perfil
 * 
 * @package APATHANY
 * @version 1.0.0
 */

/* ============================================
   VARIÁVEIS E CONFIGURAÇÃO
============================================ */
:root {
    --auth-primary: #2A5C5E;
    --auth-primary-dark: #1A363A;
    --auth-secondary: #9C006A;
    --auth-secondary-dark: #5C003A;
    --auth-success: #28a745;
    --auth-error: #dc3545;
    --auth-warning: #ffc107;
    --auth-info: #17a2b8;
    --auth-text: #1A363A;
    --auth-text-light: #6c757d;
    --auth-border: #dee2e6;
    --auth-bg: #f8f9fa;
    --auth-white: #ffffff;
    --auth-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --auth-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
    --auth-transition: all 0.3s ease;
}

/* ============================================
   OCULTAR HEADER E FOOTER NAS PÁGINAS DE AUTH
============================================ */
/* Ocultar header nas páginas de autenticação - usando classe específica */
body.page-auth-layout .modern-header,
body.page-auth-layout header.app-header,
body.page-auth-layout .navbar,
body.page-auth-layout .mobile-menu-modern,
body.page-auth-layout .app-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
}

/* Ocultar footer nas páginas de autenticação */
body.page-auth-layout footer,
body.page-auth-layout .app-footer,
body.page-auth-layout .footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Ajustar body para remover padding do header */
body.page-auth-layout {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Fallback usando :has() para navegadores modernos */
body:has(.page-auth-wrapper) .modern-header,
body:has(.page-auth-wrapper) header.app-header,
body:has(.page-auth-wrapper) .navbar,
body:has(.page-auth-wrapper) .mobile-menu-modern {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
}

body:has(.page-auth-wrapper) footer,
body:has(.page-auth-wrapper) .app-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body:has(.page-auth-wrapper) {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================
   WRAPPER E CONTAINER
============================================ */
.page-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1A363A 0%, #2A5C5E 50%, #5C003A 100%);
    position: relative;
    overflow: hidden;
}

/* Efeito de partículas animadas */
.page-auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: particlesFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particlesFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.apathany-auth-container {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s ease;
}

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

/* ============================================
   BOX PRINCIPAL
============================================ */
.apathany-auth-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--auth-shadow);
    transition: var(--auth-transition);
}

.apathany-auth-box:hover {
    box-shadow: var(--auth-shadow-hover);
}

.complete-profile-box {
    max-width: 700px;
    margin: 0 auto;
}

.register-box {
    max-width: 540px;
}

/* ============================================
   LOGO
============================================ */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo a {
    display: inline-block;
    transition: var(--auth-transition);
}

.auth-logo img {
    height: 70px;
    width: auto;
    max-width: 200px;
    transition: var(--auth-transition);
    filter: brightness(1.1);
}

.auth-logo a:hover {
    transform: scale(1.05);
}

.auth-logo a:hover img {
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(42, 92, 94, 0.4));
}

/* ============================================
   HEADER
============================================ */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.auth-header p {
    font-size: 16px;
    color: var(--auth-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   GOOGLE AUTH BUTTON
============================================ */
.auth-google-section {
    margin-bottom: 25px;
}

.btn-google-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--auth-white);
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--auth-text);
    cursor: pointer;
    transition: var(--auth-transition);
}

.btn-google-auth:hover {
    background: var(--auth-bg);
    border-color: var(--auth-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google-auth svg {
    flex-shrink: 0;
}

/* ============================================
   DIVIDER
============================================ */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--auth-text-light);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   ACCOUNT TYPE SELECTOR
============================================ */
.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.account-type-option {
    position: relative;
    cursor: pointer;
    transition: var(--auth-transition);
}

.account-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    background: var(--auth-bg);
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    transition: var(--auth-transition);
}

.option-content i {
    font-size: 32px;
    color: var(--auth-text-light);
    transition: var(--auth-transition);
}

.option-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--auth-text);
}

.option-desc {
    font-size: 13px;
    color: var(--auth-text-light);
    text-align: center;
}

.account-type-option:hover .option-content {
    border-color: var(--auth-primary);
    background: rgba(42, 92, 94, 0.05);
}

.account-type-option.active .option-content {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
    border-color: var(--auth-primary);
    box-shadow: 0 4px 16px rgba(42, 92, 94, 0.25);
}

.account-type-option.active .option-content i,
.account-type-option.active .option-title,
.account-type-option.active .option-desc {
    color: var(--auth-white);
}

/* ============================================
   FORMULÁRIO
============================================ */
.auth-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--auth-primary);
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--auth-text);
    background: var(--auth-white);
    border: 2px solid var(--auth-border);
    border-radius: 10px;
    transition: var(--auth-transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(42, 92, 94, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--auth-text-light);
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
}

.input-hint.success {
    color: var(--auth-success);
}

.input-hint.error {
    color: var(--auth-error);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-light);
    cursor: pointer;
    padding: 8px;
    transition: var(--auth-transition);
}

.btn-toggle-password:hover {
    color: var(--auth-primary);
}

/* Password Strength */
.password-strength {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--auth-text);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--auth-primary);
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ============================================
   BOTÕES
============================================ */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--auth-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
    color: var(--auth-white);
    box-shadow: 0 4px 16px rgba(42, 92, 94, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(42, 92, 94, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--auth-bg);
    color: var(--auth-text);
    border: 2px solid var(--auth-border);
}

.btn-secondary:hover {
    background: var(--auth-white);
    border-color: var(--auth-primary);
}

.btn-loader {
    display: none;
}

/* ============================================
   LINKS
============================================ */
.link-primary {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--auth-transition);
}

.link-primary:hover {
    color: var(--auth-secondary);
    text-decoration: underline;
}

.link-secondary {
    color: var(--auth-text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--auth-transition);
}

.link-secondary:hover {
    color: var(--auth-primary);
    text-decoration: underline;
}

/* ============================================
   MENSAGENS
============================================ */
.auth-message {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--auth-success);
    border: 2px solid var(--auth-success);
}

.auth-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--auth-error);
    border: 2px solid var(--auth-error);
}

/* ============================================
   FOOTER
============================================ */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
}

.auth-footer p {
    margin: 0;
    font-size: 15px;
    color: var(--auth-text);
}

/* ============================================
   PROFILE STEPS (ONBOARDING)
============================================ */
.profile-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.profile-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--auth-border);
    z-index: 0;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--auth-white);
    border: 2px solid var(--auth-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--auth-text-light);
    transition: var(--auth-transition);
}

.step-label {
    font-size: 13px;
    color: var(--auth-text-light);
    font-weight: 500;
    text-align: center;
    transition: var(--auth-transition);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
    border-color: var(--auth-primary);
    color: var(--auth-white);
    box-shadow: 0 4px 12px rgba(42, 92, 94, 0.3);
}

.step.active .step-label {
    color: var(--auth-primary);
    font-weight: 700;
}

.step.completed .step-number {
    background: var(--auth-success);
    border-color: var(--auth-success);
    color: var(--auth-white);
}

.step.completed .step-number::after {
    content: '✓';
}

/* ============================================
   FORM STEPS (MULTISTEP)
============================================ */
.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 8px 0;
}

.step-description {
    font-size: 15px;
    color: var(--auth-text-light);
    margin: 0 0 25px 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
}

/* ============================================
   GENRE TAGS
============================================ */
.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.tag-option {
    cursor: pointer;
}

.tag-option input {
    display: none;
}

.tag-option span {
    display: inline-block;
    padding: 10px 20px;
    background: var(--auth-bg);
    border: 2px solid var(--auth-border);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
    transition: var(--auth-transition);
}

.tag-option:hover span {
    border-color: var(--auth-primary);
    background: rgba(42, 92, 94, 0.05);
}

.tag-option input:checked + span {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
    border-color: var(--auth-primary);
    color: var(--auth-white);
}

/* ============================================
   INFO BOX
============================================ */
.info-box {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: rgba(23, 162, 184, 0.1);
    border: 2px solid var(--auth-info);
    border-radius: 12px;
    margin: 20px 0;
}

.info-box i {
    font-size: 24px;
    color: var(--auth-info);
    flex-shrink: 0;
}

.info-box strong {
    display: block;
    font-size: 15px;
    color: var(--auth-text);
    margin-bottom: 4px;
}

.info-box p {
    font-size: 14px;
    color: var(--auth-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .page-auth-wrapper {
        padding: 20px 15px;
    }
    
    .apathany-auth-box {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .account-type-selector {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .profile-steps {
        margin-bottom: 30px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .profile-steps::before {
        left: 30px;
        right: 30px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    .auth-logo img {
        height: 50px;
    }
    
    .apathany-auth-box {
        padding: 25px 20px;
    }
    
    .btn-google-auth {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* ============================================
   UPLOAD DE AVATAR
============================================ */
.avatar-upload-group {
    margin-bottom: 30px;
}

.avatar-upload-container {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background: var(--auth-bg);
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    transition: var(--auth-transition);
}

.avatar-upload-container:hover {
    border-color: var(--auth-primary);
    background: rgba(42, 92, 94, 0.05);
}

.avatar-preview {
    flex-shrink: 0;
}

.avatar-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--auth-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--auth-transition);
}

.avatar-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.avatar-upload-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-upload-avatar,
.btn-remove-avatar {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--auth-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}

.btn-upload-avatar {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
    color: var(--auth-white);
    box-shadow: 0 2px 8px rgba(42, 92, 94, 0.25);
}

.btn-upload-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 92, 94, 0.35);
}

.btn-remove-avatar {
    background: var(--auth-error);
    color: var(--auth-white);
}

.btn-remove-avatar:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.avatar-upload-controls small {
    font-size: 13px;
    color: var(--auth-text-light);
}

/* Form Divider */
.form-divider {
    height: 1px;
    background: var(--auth-border);
    border: none;
    margin: 30px 0;
}

/* Edit Profile Specific */
.edit-profile-container {
    max-width: 800px;
}

.edit-profile-box {
    max-width: 100%;
}

/* Responsive Avatar Upload */
@media (max-width: 768px) {
    .avatar-upload-container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .avatar-upload-controls {
        width: 100%;
        align-items: center;
    }
    
    .btn-upload-avatar,
    .btn-remove-avatar {
        width: 100%;
        max-width: 250px;
    }
}

/* ============================================
   MELHORIAS PÁGINA EDITAR PERFIL
============================================ */

/* Indicador de Progresso do Perfil */
.profile-completion {
    margin-top: 20px;
    padding: 15px;
    background: rgba(42, 92, 94, 0.05);
    border-radius: 12px;
    border: 1px solid var(--auth-border);
}

.completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.completion-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
}

.completion-percentage {
    font-size: 16px;
    font-weight: 700;
    color: var(--auth-primary);
}

.completion-bar {
    width: 100%;
    height: 8px;
    background: var(--auth-border);
    border-radius: 20px;
    overflow: hidden;
}

.completion-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--auth-primary), var(--auth-secondary));
    border-radius: 20px;
    transition: width 0.5s ease, background 0.3s ease;
}

/* Seções Colapsáveis */
.form-section {
    margin-bottom: 20px;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--auth-white);
    transition: var(--auth-transition);
}

.form-section:hover {
    border-color: var(--auth-primary);
    box-shadow: 0 2px 8px rgba(42, 92, 94, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(42, 92, 94, 0.05) 0%, rgba(77, 166, 170, 0.05) 100%);
    cursor: pointer;
    user-select: none;
    transition: var(--auth-transition);
}

.section-header:hover {
    background: linear-gradient(135deg, rgba(42, 92, 94, 0.1) 0%, rgba(77, 166, 170, 0.1) 100%);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--auth-text);
}

.section-title i {
    color: var(--auth-primary);
    font-size: 18px;
}

.section-toggle {
    color: var(--auth-text-light);
    transition: transform 0.3s ease;
}

.section-toggle.rotated {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.section-content.active {
    max-height: 2000px;
    padding: 20px;
}

/* Badges */
.required-badge,
.optional-badge,
.artist-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.optional-badge {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.artist-badge {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
}

/* Tooltips */
.field-tooltip {
    position: relative;
    display: inline-flex;
    cursor: help;
    color: var(--auth-text-light);
    margin-left: 5px;
    transition: var(--auth-transition);
}

.field-tooltip:hover {
    color: var(--auth-primary);
}

.tooltip-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInTooltip 0.2s ease;
}

.tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Campos com Validação */
.field-error {
    display: none;
    color: var(--auth-error);
    font-size: 13px;
    margin-top: 5px;
    animation: slideIn 0.3s ease;
}

.field-success {
    display: none;
    color: #28a745;
    font-size: 18px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    animation: scaleIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.form-group {
    position: relative;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--auth-error);
    background: rgba(220, 53, 69, 0.05);
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

/* Input com Ícone */
.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-light);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input {
    padding-left: 45px;
}

.input-with-icon .social-icon {
    color: var(--auth-primary);
}

/* Telefone Moçambique com Prefixo Fixo */
.phone-mozambique {
    display: flex;
    align-items: center;
    position: relative;
}

.phone-mozambique .phone-prefix {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--auth-primary);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    background: white;
    padding-right: 5px;
}

.phone-mozambique input {
    padding-left: 90px !important;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--auth-text-light);
}

.field-hint i {
    color: var(--auth-primary);
    margin-right: 4px;
}

/* Avatar com Overlay */
.avatar-preview-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    color: white;
    gap: 5px;
}

.avatar-preview-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 24px;
}

.avatar-overlay span {
    font-size: 12px;
    font-weight: 600;
}

/* Notificação de Mudanças Não Salvas */
.unsaved-changes-notice {
    display: none;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #856404;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.unsaved-changes-notice i {
    font-size: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorias no Contador de Caracteres */
.textarea-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.char-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-text-light);
    font-size: 13px;
}

.char-counter i {
    color: var(--auth-primary);
}

/* Melhorias nos Botões */
.btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.upload-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-text-light);
}

.upload-hint i {
    color: var(--auth-primary);
}

/* Responsivo para Seções */
@media (max-width: 768px) {
    .section-header {
        padding: 15px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .section-title i {
        font-size: 16px;
    }
    
    .section-content.active {
        padding: 15px;
    }
    
    .profile-completion {
        padding: 12px;
    }
    
    .completion-label,
    .completion-percentage {
        font-size: 13px;
    }
    
    .tooltip-bubble {
        white-space: normal;
        max-width: 200px;
    }
}

