@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap");
html, body { overflow-x: hidden; overflow-y: auto; }
#create-account-form {
    width: 100vw;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#create-account-form > div {
    width: 100%;
    min-height: 52vh;
    margin: -8vh 0 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}
#create-account-form > div > h1 {
    margin: 0 20px 18px;
    text-align: center;
    font-family: "Alfa Slab One", Helvetica, sans-serif;
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.08;
}
#create-account-form > div > p {
    width: min(80%, 560px);
    margin: 9px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#create-account-form label { font-weight: 700; }
#create-account-form input[type="text"],
#create-account-form input[type="email"],
#create-account-form input[type="tel"],
#create-account-form input[type="number"],
#create-account-form input[type="password"] {
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #888;
    border-radius: 0;
    background: transparent;
    font-size: 1.2rem;
}
#create-account-form input:focus,
#create-account-form textarea:focus,
#create-account-form select:focus {
    outline: none;
    border-color: #e32636;
}
#create-account-form nav.anterior-proximo {
    width: min(100%, 620px);
    margin-top: 18px;
    padding: 0 20px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
}
#create-account-form nav.anterior-proximo > .anterior,
#create-account-form nav.anterior-proximo > .proximo {
    min-height: 44px;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#create-account-form nav.anterior-proximo > .anterior { background: transparent; color: #222; }
#create-account-form nav.anterior-proximo > .proximo { color: #e32636; background-color: #fff; z-index: 10000; }
#create-account-form nav.anterior-proximo > .proximo:disabled { opacity: 0.55; cursor: wait; }
#nascimento nav.campos-nascimento {
    width: min(92%, 620px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
#nascimento nav.campos-nascimento > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#nascimento nav.campos-nascimento input,
#nascimento nav.campos-nascimento select,
#sexo select {
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    font-size: 1rem;
}
#sexo .campo-genero { width: min(80%, 420px); display: flex; flex-direction: column; gap: 10px; }
#gostos .adicionar-gosto { flex-direction: row; align-items: center; gap: 12px; }
#gostos #adicionar-gosto {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: #e32636;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
#recomendacoes {
    display: none;
    width: min(80vw, 560px);
    max-height: 220px;
    overflow-y: auto;
    margin: 4px 0 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}
#recomendacoes ul { margin: 0; padding: 8px; list-style: none; }
#recomendacoes li { padding: 10px; border-radius: 9px; cursor: pointer; }
#recomendacoes li:hover { background: #f0f0f2; }
#meus-gostos { width: min(90%, 620px); display: flex; flex-wrap: wrap; gap: 8px; }
#meus-gostos .meu-hobbie { margin: 0; padding: 9px 16px; border-radius: 999px; background: #e5e5e8; cursor: pointer; }
#objetivo { min-height: 72vh !important; }
.objetivo-explicacao { align-items: center !important; color: #666; text-align: center; }
.objetivo-opcoes { width: min(88%, 560px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.objetivo-opcao { position: relative; cursor: pointer; }
.objetivo-opcao input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.objetivo-opcao span {
    min-height: 62px;
    padding: 12px;
    border: 1px solid #d5d5d9;
    border-radius: 17px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}
.objetivo-opcao input:checked + span {
    border-color: #e32636;
    background: #e32636;
    color: #fff;
    transform: scale(0.98);
}
.objetivo-opcao input:focus-visible + span { outline: 3px solid rgba(227, 38, 54, 0.25); }
#descricao > label { width: min(90%, 620px); margin-bottom: 8px; }
#descricao textarea {
    width: min(90%, 620px);
    height: min(42vw, 240px);
    min-height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 14px;
    resize: vertical;
    font: inherit;
}
#palavra-passe #mostrar-password { flex-direction: row; align-items: center; gap: 10px; }
#palavra-passe #mostrar-password input { width: 17px; height: 17px; }
#perfil-fotos-erro {
    width: min(90%, 620px);
    min-height: 20px;
    margin: 8px auto;
    color: #d32235;
    text-align: center;
    font-size: 0.9rem;
}
#create-account-erro { display: none; }
#create-account-erro:not(:empty) {
    position: fixed;
    z-index: 10000;
    top: calc(env(safe-area-inset-top, 0px) + 18px);
    left: 50%;
    display: block;
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e32636;
    border-radius: 16px;
    background: #fff0f2;
    color: #b81729;
    box-shadow: 0 12px 32px rgba(120, 0, 16, 0.18);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
    transform: translateX(-50%);
}
body.perfil-camera-aberta { overflow: hidden; background: #000; }
body.perfil-camera-aberta > header, body.perfil-camera-aberta > footer { display: none !important; }
#create-account-form > #fotos { min-height: 82vh; height: auto; margin-top: 0; justify-content: center; }
#perfil-fotos-conteudo { width: 100%; display: flex; flex-direction: column; align-items: center; }
#perfil-fotos-conteudo > h1 {
    margin: 0 0 8px;
    font-family: "Alfa Slab One", Helvetica, sans-serif;
    font-size: clamp(2rem, 7vw, 2.4rem);
    text-align: center;
}
.perfil-fotos-explicacao {
    width: min(85%, 560px);
    margin: 0 0 18px;
    color: #666;
    line-height: 1.4;
    text-align: center;
}
#perfil-lista-fotos { width: min(92vw, 560px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perfil-foto-cartao,
.perfil-foto-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
}
.perfil-foto-cartao { border: 2px solid transparent; background: #eee; }
.perfil-foto-cartao.principal { border-color: #e32636; }
.perfil-foto-cartao img { width: 100%; height: 100%; display: block; object-fit: cover; }
.perfil-foto-placeholder {
    border: 2px dashed #cfcfd3;
    background: #f7f7f8;
    color: #777;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.perfil-foto-placeholder span { font-size: 0.72rem; }
.perfil-remover-foto {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    cursor: pointer;
}
.perfil-foto-principal {
    position: absolute;
    bottom: 7px;
    left: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e32636;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}
.perfil-definir-principal {
    position: absolute;
    right: 5px;
    bottom: 6px;
    left: 5px;
    padding: 6px 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    cursor: pointer;
}
.perfil-fotos-acoes { width: min(92vw, 560px); margin-top: 16px; display: flex; gap: 10px; }
.perfil-botao-foto {
    flex: 1;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}
#perfil-camera-interface {
    position: fixed;
    z-index: 999999;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: #000;
}
#perfil-camera-video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#perfil-camera-canvas { display: none; }
.perfil-camera-header {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: calc(env(safe-area-inset-top) + 16px) 20px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.perfil-camera-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.44);
    color: #fff;
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.perfil-camera-guia {
    position: relative;
    z-index: 5;
    width: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.perfil-camera-circulo {
    width: min(90vw, 64dvh, 620px);
    aspect-ratio: 1 / 1;
    border: 3px solid rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.25);
}
.perfil-camera-guia p { margin: 18px 20px 0; color: #fff; text-align: center; text-shadow: 0 1px 4px #000; }
.perfil-camera-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 30px 30px calc(env(safe-area-inset-bottom) + 28px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.perfil-galeria-botao {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}
.perfil-disparador {
    width: 82px;
    height: 82px;
    padding: 4px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.perfil-disparador span {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    background: #e32636;
    transition: transform 0.15s ease;
}
.perfil-disparador.a-capturar { pointer-events: none; opacity: 0.7; }
.perfil-disparador.a-capturar span { transform: scale(0.82); }
.perfil-camera-espaco { width: 52px; }
@media (max-width: 560px) {
    .objetivo-opcoes { grid-template-columns: 1fr; gap: 8px; }
    .objetivo-opcao span { min-height: 50px; }
    #objetivo { justify-content: flex-start !important; padding-top: 8vh !important; }
}
@media (min-width: 700px) {
    #perfil-lista-fotos { grid-template-columns: repeat(3, 150px); justify-content: center; }
}
@media (min-width: 768px) {
    #create-account-form { padding: 32px 24px; }
    #create-account-form > div { width: min(100%, 760px); min-height: min(640px, calc(100dvh - 64px)); margin: 0 auto; }
    #create-account-form > div > h1 { max-width: 720px; font-size: 2.7rem; }
    #descricao textarea { height: 220px; }
}
/*
 * Transição nativa Entrar <-> Criar conta.
 *
 * Mantemos exatamente o mesmo movimento.
 * Apenas aumentamos ligeiramente a duração.
 */
@view-transition {
    navigation: auto;
}
::view-transition-old(root) { animation: margot-auth-sair 240ms cubic-bezier(0.4, 0, 0.2, 1) both; }
::view-transition-new(root) { animation: margot-auth-entrar 330ms cubic-bezier(0.22, 0.8, 0.28, 1) both; }
@keyframes margot-auth-sair {
    from { opacity: 1; transform: translate3d(0, 0, 0); }
    to { opacity: 0.88; transform: translate3d(-28px, 0, 0); }
}
@keyframes margot-auth-entrar {
    from { opacity: 0.84; transform: translate3d(38px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
