@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Patrick+Hand&display=swap');

/* ===== VARIÁVEIS E CONFIGURAÇÕES GLOBAIS ===== */
:root {
    --primary-pink: #ec4899;
    --pink-gradient: linear-gradient(to right, #f472b6, #ec4899);
    --pink-light: #fdf2f8;
    --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-standard: all 0.3s ease;
}

/* ===== RESET E CONFIGURAÇÕES BASE ===== */
body {
    font-family: 'Patrick Hand', cursive;
    line-height: 1.6;
}

/* ===== TIPOGRAFIA ===== */
.dancing-font {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

/* ===== COMPONENTES REUTILIZÁVEIS ===== */

/* Cards Gerais */
.card-hover {
    transition: var(--transition-standard);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Cards da Galeria */
.gallery-card {
    transition: var(--transition-standard);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

/* Botões de Filtro */
.filter-btn {
    transition: var(--transition-standard);
    cursor: pointer;
}

.filter-btn.active {
    background-color: var(--primary-pink);
    color: white;
}

/* Header */
.header-bg {
    background: var(--pink-gradient);
}

/* ===== COMPONENTES ESPECÍFICOS ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 101;
    transition: var(--transition-standard);
}

.close-modal:hover {
    color: #f472b6;
    transform: scale(1.1);
}

/* ===== ANIMAÇÕES ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== ESTADOS E INTERAÇÕES ===== */

/* Estados Hover */
.filter-btn:hover:not(.active) {
    background-color: #fbcfe8;
    transform: translateY(-2px);
}

.gallery-card img {
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .close-modal {
        top: 5px;
        right: 10px;
        font-size: 24px;
    }
}

/* ===== UTILITÁRIOS ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.filter-btn:focus,
.close-modal:focus {
    outline: 2px solid var(--primary-pink);
    outline-offset: 2px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* LOGIN / CADASTRO */

/* Estilos para a página de login/cadastro */
.login-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.form-wrapper {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.1);
    overflow: hidden;
}

.form-tabs {
    display: flex;
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.form-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    font-size: 1rem;
}

.form-tab.active {
    background: rgba(255, 255, 255, 0.2);
}

.form-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

.forms-container {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    visibility: hidden;
}

.form.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #fbcfe8;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #9d174d;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.5rem;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: #ec4899;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ec4899;
}

.password-toggle {
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #db2777;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #9d174d;
}

.switch-form {
    color: #ec4899;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.switch-form:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: #ec4899;
}

.checkbox-label {
    color: #9d174d;
    font-size: 0.875rem;
    line-height: 1.4;
}

.forgot-password {
    color: #ec4899;
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Animações */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes success {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-success {
    animation: success 0.5s ease-in-out;
}