
:root {
    --rose: #B88A98;
    --rose-light: #FAF1F3;
    --gold: #C5A572;
    --white: #FFFFFF;
    --text: #57444B;
    --muted: #806D73;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6%;
    border-bottom: 1px solid #F0E5E8;
}

.brand {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 22px;
    color: #987746;
    text-decoration: none;
}

.version {
    font-size: 11px;
    color: var(--muted);
}

.hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rose-light);
    padding: 70px 24px;
    text-align: center;
}

.hero-content {
    max-width: 680px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    color: #987746;
    margin-bottom: 24px;
}

h1 {
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: normal;
    font-size: clamp(38px, 7vw, 72px);
    color: #987746;
    margin-bottom: 24px;
}

h2 {
    font-weight: 500;
}

.description {
    color: var(--muted);
    margin: 16px 0 30px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.button {
    padding: 15px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.primary {
    background: #936573;
    border: 1px solid #936573;
    color: var(--white);
}

.secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: #826337;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.development {
    font-size: 12px;
    color: var(--muted);
    margin-top: 22px;
}

.services {
    max-width: 1100px;
    margin: auto;
    padding: 60px 24px;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: var(--rose-light);
    border: 1px solid #EEDFE3;
    border-radius: 12px;
    padding: 35px 20px;
}

.service-card h3 {
    font-weight: 500;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
}

footer {
    border-top: 1px solid #F0E5E8;
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

#system-status {
    font-size: 11px;
}

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

    .actions {
        flex-direction: column;
    }

    .hero {
        min-height: 420px;
        padding: 50px 20px;
    }
}

/* Authentication */

.button:not(:disabled) {
    cursor: pointer;
}

.login-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(420px, 92vw);
    padding: 40px 28px;
    border: 1px solid #EEDFE3;
    border-radius: 18px;
    background: var(--white);
    color: var(--text);
    text-align: center;
    box-shadow: 0 20px 70px #00000020;
}

.login-dialog::backdrop {
    background: #30202780;
    backdrop-filter: blur(4px);
}

.login-dialog h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    color: #987746;
    margin-bottom: 16px;
}

.login-dialog p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
    overflow-wrap: anywhere;
}

.close-login {
    position: absolute;
    top: 10px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--muted);
    cursor: pointer;
}

.google-button {
    width: 100%;
    background: white;
    border: 1px solid #E4D7DB;
    color: var(--text);
}

#auth-message {
    margin-top: 18px;
    margin-bottom: 0;
}

[hidden] {
    display: none !important;
}

/* Autenticacao por e-mail */

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #EEDFE3;
}

#email-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

#email-login-form label {
    font-size: 13px;
    font-weight: 500;
}

#login-email {
    width: 100%;
    padding: 14px;
    border: 1px solid #E2D4D8;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

#login-email:focus {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
}

#email-login {
    width: 100%;
    cursor: pointer;
}

#email-login-help {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

[hidden] {
    display: none !important;
}

/* Cadastro de clientes */

.login-dialog {
    max-height: 90dvh;
    overflow-y: auto;
}

#profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin: 20px 0;
}

#profile-form h3 {
    text-align: center;
    font-weight: 500;
    color: #987746;
    margin-bottom: 8px;
}

#profile-form label {
    font-size: 13px;
    font-weight: 500;
}

#profile-form input:not([type="checkbox"]) {
    width: 100%;
    padding: 13px;
    border: 1px solid #E2D4D8;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

#profile-form input:focus {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
}

#profile-form input[readonly] {
    background: #F5F3F4;
    color: var(--muted);
}

.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: var(--muted);
}

.consent-option input {
    accent-color: #936573;
    margin-top: 4px;
}

#profile-message {
    margin: 0;
    text-align: center;
}

#profile-summary {
    margin-bottom: 20px;
}

#profile-summary .button {
    width: 100%;
}



/* Titulos dos servicos */
.services h2,
.service-card h3 {
    color: #987746;
}
