:root {
    --gold-primary: #FFD700;
    --gold-secondary: #fdefdb;
    --gold-dark: #D4AF37;
    --black-primary: #0A0A0A;
    --black-secondary: #1A1A1A;
    --black-tertiary: #2A2A2A;
    --text-light: #F5F5F5;
    --text-gray: #AAAAAA;
    --facebook-blue: #3b5998;
    --google-red: #db4437;
    --password-weak: #FF4B4B;
    --password-medium: #FFB74D;
    --password-strong: #4CAF50;
    --microsoft-color: #0078D4;
    --google-color: #DB4437;
    --facebook-color: #3b5998;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px; /* Tamanho mínimo recomendado para touch */
    font-size: 16px;
    padding: 8px 12px;
}

input, button {
    font-size: 16px; /* evita zoom automático no iOS */
}

body {
    display: flex;
    min-height: 100vh;
    background: var(--black-primary);
    color: var(--text-light);
    overflow: hidden; /* bloqueia rolagem */
    overscroll-behavior: none; /* desativa o elástico no iOS */
}

/* Botão Voltar para Login - NOVO */
.btn-back-login {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--black-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

    .btn-back-login:hover {
        background: var(--black-tertiary);
        color: var(--text-light);
    }

.error-message {
    color: var(--error);
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
    display: none;
}

.input-group.error input {
    border-color: var(--error);
}

.input-group.error .error-message {
    display: block;
}

.main-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Seção do Formulário */
.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--black-secondary);
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.form-content {
    max-width: 500px;
    width: 100%;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.crown-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    color: var(--gold-primary);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.heart {
    color: var(--gold-primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Barra de força da senha */
.password-strength {
    margin-top: 0.5rem;
    height: 5px;
    border-radius: 3px;
    background: #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    text-align: right;
    height: 1rem;
    transition: all 0.3s ease;
}

/* Regras de segurança */
.password-rules {
    margin-top: 0.5rem;
    padding: 0.8rem;
    background-color: var(--black-tertiary);
    border-radius: 8px;
    font-size: 0.8rem;
}

    .password-rules h4 {
        margin-bottom: 0.5rem;
        color: var(--text-gray);
        font-size: 0.85rem;
    }

.rule {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
    color: var(--text-gray);
}

    .rule i {
        margin-right: 0.5rem;
        font-size: 0.7rem;
        width: 14px;
    }

    .rule.valid {
        color: var(--password-strong);
    }

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}


/* Progresso do Cadastro */
.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

    .progress-container::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        height: 4px;
        width: 100%;
        background-color: var(--black-tertiary);
        z-index: 1;
    }

.progress {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 0%;
    background: linear-gradient(to right, var(--gold-primary), var(--gold-dark));
    z-index: 2;
    transition: width 0.4s ease;
}

.circle {
    background-color: var(--black-secondary);
    color: var(--text-gray);
    border-radius: 50%;
    height: 40px;
    width: 40px;
    border: 3px solid var(--black-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}

    .circle.active {
        border-color: var(--gold-primary);
        color: var(--gold-primary);
        font-weight: 600;
    }

/* Formulário em Etapas */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.step-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.step-fotos {
    color: #FF4B4B;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 1.5rem;
}

    .input-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--text-gray);
        font-weight: 500;
        font-size: 0.95rem;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        width: 100%;
        padding: 14px 18px;
        border: 1px solid var(--black-tertiary);
        border-radius: 8px;
        background-color: var(--black-primary);
        color: var(--text-light);
        font-size: 1rem;
        outline: none;
        transition: all 0.3s;
    }

        .input-group input:focus,
        .input-group select:focus,
        .input-group textarea:focus {
            border-color: var(--gold-primary);
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
        }

    .input-group textarea {
        min-height: 120px;
        resize: vertical;
    }

.radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
}

.radio-option {
    flex: 1;
}

    .radio-option input {
        display: none;
    }

    .radio-option label {
        display: block;
        padding: 15px;
        border: 2px solid var(--black-tertiary);
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        background-color: var(--black-primary);
    }

    .radio-option input:checked + label {
        border-color: var(--gold-primary);
        background-color: rgba(255, 215, 0, 0.05);
    }

    .radio-option i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--gold-primary);
    }

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.5rem;
}

.checkbox-option {
    flex: 1 0 calc(50% - 10px);
}

    .checkbox-option input {
        display: none;
    }

    .checkbox-option label {
        display: block;
        padding: 12px;
        border: 2px solid var(--black-tertiary);
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 0.9rem;
        background-color: var(--black-primary);
    }

    .checkbox-option input:checked + label {
        border-color: var(--gold-primary);
        background-color: rgba(255, 215, 0, 0.05);
    }

/* Botões de Navegação */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn {
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-prev {
    background: var(--black-tertiary);
    color: var(--text-gray);
}

    .btn-prev:hover {
        background: #333;
    }

.btn-next {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

    .btn-next:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    }

/* Upload de Fotos - ÁREA MODIFICADA */
.photos-upload {
    margin-bottom: 2rem;
}

.photos-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 1.1rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 1.5rem;
}

.photo-preview-container {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 8px;
    background-color: var(--black-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed var(--black-tertiary);
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--text-gray);
}

    .photo-placeholder i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        color: var(--gold-primary);
    }

    .photo-placeholder p {
        font-size: 0.9rem;
    }

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--black-tertiary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-preview-container:hover .remove-photo {
    opacity: 1;
}

.upload-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
    display: block;
    margin: 0 auto;
    font-size: 0.95rem;
}

    .upload-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    }

.photo-input {
    display: none;
}

/* Seção da Imagem */
.image-section {
    flex: 1;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.image-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
}

.image-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

    .image-slide::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    }

.image-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

    .image-content.active {
        opacity: 1;
        transform: translateY(0);
    }

    .image-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        font-weight: 700;
        font-family: 'Playfair Display', serif;
        color: var(--gold-primary);
    }

    .image-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 500px;
        line-height: 1.6;
        opacity: 0.9;
    }

/* Revisão de Informações */
.review-info {
    background-color: var(--black-primary);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--black-tertiary);
    margin-top: 5px;
    font-size: 0.95rem;
}

/* Termos e Condições */
.terms-group {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

    .terms-group input {
        margin-right: 10px;
        accent-color: var(--gold-primary);
    }

    .terms-group label {
        font-size: 0.9rem;
        color: var(--text-gray);
    }

    .terms-group a {
        color: var(--gold-primary);
        text-decoration: none;
        font-weight: 500;
    }

        .terms-group a:hover {
            text-decoration: underline;
        }

/* Botões de Login Social */
.social-login {
    margin: 2rem 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    color: white;
}

    .social-btn i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

.facebook-btn {
    background-color: var(--facebook-color);
}

    .facebook-btn:hover {
        background-color: #344e86;
    }

.google-btn {
    background-color: var(--google-color);
}

    .google-btn:hover {
        background-color: #c23321;
    }

.microsoft-btn {
    background: var(--microsoft-color);
    color: #ffffff;
}

    .microsoft-btn:hover {
        background-color: #1e1e1e;
    }

.email-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
}

    .email-btn:hover {
        background: linear-gradient(135deg, #e6c700, #c9a52f);
    }

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid var(--black-tertiary);
        margin: 0 10px;
    }


.loading-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    height: 10px; /* altura da onda */
}

    .loading-wave span {
        width: 6px;
        height: 6px;
        background-color: white;
        border-radius: 50%;
        animation: wave 1s infinite ease-in-out;
    }

        .loading-wave span:nth-child(1) {
            animation-delay: 0s;
        }

        .loading-wave span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-wave span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes wave {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }
}

/* Verificação de Foto */
.verification-section {
    background-color: var(--black-primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gold-dark);
}

.verification-title {
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.verification-description {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.verification-example {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.example-image-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
}

.example-image {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--gold-primary);
}

.example-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 80%;
}

.verification-text {
    font-weight: bold;
    color: #000;
    font-size: 16px;
    margin-bottom: 5px;
}

.verification-date {
    color: #000;
    font-size: 14px;
}

.example-caption {
    color: var(--text-gray);
    font-size: 0.85rem;
    text-align: center;
    max-width: 300px;
}

.verification-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.verification-preview-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3/4;
    border-radius: 8px;
    background-color: var(--black-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed var(--black-tertiary);
    margin-bottom: 1rem;
}

.verification-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.verification-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
    font-size: 0.95rem;
}

    .verification-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    }

/* Responsividade - ÁREA MODIFICADA */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }

    .image-section {
        display: none;
    }

    .form-section {
        padding: 1.5rem;
        min-height: 100vh;
    }

    .checkbox-option {
        flex: 1 0 100%;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }

    .photo-preview-container {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .form-content {
        padding: 0;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Ajustes específicos para o espaço de fotos em mobile */
    .photos-upload {
        margin-bottom: 1.5rem;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
    }

    .photo-preview-container {
        max-width: 100%;
        height: auto;
    }

    .photo-placeholder {
        padding: 15px;
    }

        .photo-placeholder i {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }

        .photo-placeholder p {
            font-size: 0.85rem;
        }

    .photos-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .upload-btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 380px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .photo-placeholder i {
        font-size: 1.6rem;
    }

    .photo-placeholder p {
        font-size: 0.8rem;
    }
}