/* ==================== PROFILE.CSS ==================== */
/* Styles for Image Uploads and Social Grids used in Register and Profile */

.image-upload-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg-card, #FFFFFF);
    position: relative;
}

.upload-dropzone:hover, .upload-dropzone.drag-over {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.img-preview-wrap {
    position: relative;
}

.img-preview {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    display: block;
}

.img-preview.logo-preview {
    max-height: 80px;
    object-fit: contain;
    background: #0f0f1a;
}

.img-preview.banner-preview {
    max-height: 140px;
}

.remove-preview-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.social-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    display: block;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 1.75rem 0 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.info-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

/* Campo com erro de senha */
.input-password-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
    background: rgba(239, 68, 68, 0.04) !important;
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.password-error-msg {
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 0.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.45;
}

.password-error-msg::before {
    content: '⚠️';
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}
