/* ═══════════════════════════════════════════════════════════════════════════
   PORTAL DO TEMPLO — TEMA CLARO 3.0 (escopo: .templo-light)
   Range Rover Velar Light · Champagne · Pearl
   Aplicado APENAS em páginas públicas: home, cadastro, consulta, login
   ═══════════════════════════════════════════════════════════════════════════ */

.templo-light {
    --tl-bg-primary: #FAF6EE;
    --tl-bg-secondary: #F2EBDC;
    --tl-bg-card: #FFFFFF;
    --tl-bg-card-hover: #FFFCF4;
    --tl-gold: #B8945A;
    --tl-gold-light: #D4B27A;
    --tl-gold-dark: #8B6F3F;
    --tl-gold-soft: #E8DCC0;
    --tl-champagne: #F5EBD3;
    --tl-pearl: #FBF7ED;
    --tl-ink: #1A1A1A;
    --tl-ink-soft: #3A3A3A;
    --tl-ink-muted: #6F6557;
    --tl-ink-light: #9C8E78;
    --tl-line: #E8DEC9;
    --tl-line-soft: #F0E8D7;
    --tl-shadow-sm: 0 1px 2px rgba(184, 148, 90, 0.05), 0 1px 3px rgba(26, 26, 26, 0.04);
    --tl-shadow-md: 0 4px 6px rgba(184, 148, 90, 0.05), 0 10px 15px rgba(26, 26, 26, 0.06);
    --tl-shadow-lg: 0 10px 15px rgba(184, 148, 90, 0.08), 0 20px 40px rgba(26, 26, 26, 0.1);
    --tl-shadow-gold: 0 8px 24px rgba(184, 148, 90, 0.18);

    background:
        radial-gradient(ellipse at top right, rgba(212, 178, 122, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(184, 148, 90, 0.08) 0%, transparent 50%),
        var(--tl-bg-primary) !important;
    color: var(--tl-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.templo-light *,
.templo-light *::before,
.templo-light *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* NAVBAR TOPO CLARA */
.templo-light .app-nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 252, 244, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--tl-line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 1000;
    box-shadow: var(--tl-shadow-sm);
}

.templo-light .app-nav-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 148, 90, 0.08);
    border: 1px solid var(--tl-line);
    border-radius: 12px;
    color: var(--tl-gold-dark);
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.templo-light .app-nav-btn:hover {
    background: var(--tl-gold);
    color: var(--tl-bg-card);
    border-color: var(--tl-gold);
}

.templo-light .app-nav-title {
    font-family: 'Marcellus', serif;
    font-size: 14px;
    color: var(--tl-ink);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* NAVBAR INFERIOR CLARA */
.templo-light .app-nav-bottom,
.templo-light .nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 252, 244, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--tl-line-soft);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(184, 148, 90, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.templo-light .app-nav-bottom .nav-item,
.templo-light .nav-bottom .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    color: var(--tl-ink-light);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 12px;
    margin: 0 2px;
}

.templo-light .app-nav-bottom .nav-item.active,
.templo-light .nav-bottom .nav-item.active {
    color: var(--tl-gold-dark);
    background: rgba(184, 148, 90, 0.08);
}

.templo-light .app-nav-bottom .nav-item .icon,
.templo-light .app-nav-bottom .nav-item .nav-icon,
.templo-light .nav-bottom .nav-item .icon,
.templo-light .nav-bottom .nav-item .nav-icon {
    font-size: 22px;
    line-height: 1;
}

.templo-light .app-nav-bottom .nav-item .label,
.templo-light .app-nav-bottom .nav-item .nav-label,
.templo-light .nav-bottom .nav-item .label,
.templo-light .nav-bottom .nav-item .nav-label {
    font-size: 9px;
    letter-spacing: 1px;
}

/* PÁGINAS DE FORMULÁRIO */
.templo-light .templo-cadastro-page,
.templo-light .templo-consulta-page,
.templo-light .templo-login-page {
    min-height: 100vh;
    padding: 84px 16px 100px;
    position: relative;
    z-index: 1;
}

.templo-light .templo-cadastro-container,
.templo-light .templo-consulta-container {
    max-width: 680px;
    margin: 0 auto;
    animation: tlSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.templo-light .templo-login-container {
    max-width: 460px;
    margin: 0 auto;
    animation: tlSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tlSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.templo-light .templo-cadastro-card,
.templo-light .templo-consulta-card,
.templo-light .templo-login-card {
    background: var(--tl-bg-card);
    border: 1px solid var(--tl-line);
    border-radius: 28px;
    padding: 36px 28px;
    box-shadow: var(--tl-shadow-md);
    position: relative;
    overflow: hidden;
}

.templo-light .templo-cadastro-card::before,
.templo-light .templo-consulta-card::before,
.templo-light .templo-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--tl-gold), var(--tl-gold-light), var(--tl-gold), transparent);
}

.templo-light .templo-cadastro-header,
.templo-light .templo-consulta-header,
.templo-light .templo-login-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tl-line-soft);
}

.templo-light .logo-glow {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.templo-light .logo-glow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1.5px solid var(--tl-gold);
    border-radius: 50%;
    animation: tlLogoPulse 3s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes tlLogoPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.templo-light .templo-cadastro-logo,
.templo-light .templo-consulta-logo,
.templo-light .templo-login-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid var(--tl-gold);
    display: block;
    box-shadow: 0 4px 16px rgba(184, 148, 90, 0.25);
}

.templo-light .templo-cadastro-header h1,
.templo-light .templo-consulta-header h1,
.templo-light .templo-login-header h1 {
    font-family: 'Marcellus', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--tl-ink);
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.templo-light .templo-cadastro-badge,
.templo-light .templo-consulta-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--tl-gold-dark);
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 4px 14px;
    border: 1px solid var(--tl-gold-soft);
    border-radius: 50px;
    background: var(--tl-pearl);
}

.templo-light .templo-consulta-intro {
    text-align: center;
    margin-top: 16px;
    color: var(--tl-ink-muted);
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.templo-light .templo-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tl-line-soft);
    background: transparent;
    border-radius: 0;
}

.templo-light .templo-section:last-of-type {
    border-bottom: none;
}

.templo-light .templo-section h3 {
    font-family: 'Marcellus', serif;
    font-size: 14px;
    color: var(--tl-ink);
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.templo-light .templo-section h3::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--tl-gold);
}

.templo-light .templo-field {
    margin-bottom: 18px;
}

.templo-light .templo-field label {
    display: block;
    font-size: 11px;
    color: var(--tl-ink-muted);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.templo-light .templo-field label .required {
    color: var(--tl-gold);
    margin-left: 2px;
}

.templo-light .templo-field input,
.templo-light .templo-field select,
.templo-light .templo-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--tl-pearl);
    border: 1px solid var(--tl-line);
    border-radius: 8px;
    color: var(--tl-ink);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.templo-light .templo-field input::placeholder,
.templo-light .templo-field textarea::placeholder {
    color: var(--tl-ink-light);
    font-weight: 300;
}

.templo-light .templo-field input:focus,
.templo-light .templo-field select:focus,
.templo-light .templo-field textarea:focus {
    outline: none;
    border-color: var(--tl-gold);
    background: var(--tl-bg-card);
    box-shadow: 0 0 0 4px rgba(184, 148, 90, 0.12);
}

.templo-light .templo-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.templo-light .templo-field small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--tl-ink-light);
    font-style: italic;
}

.templo-light .templo-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .templo-light .templo-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* RADIO CARDS (PARTO) */
.templo-light .templo-radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.templo-light .templo-radio-card {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.templo-light .templo-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.templo-light .templo-radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: var(--tl-pearl);
    border: 2px solid var(--tl-line);
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s;
}

.templo-light .templo-radio-card-content .icon {
    font-size: 28px;
    line-height: 1;
}

.templo-light .templo-radio-card-content .label {
    font-size: 13px;
    color: var(--tl-ink-soft);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.templo-light .templo-radio-card input[type="radio"]:checked + .templo-radio-card-content {
    background: var(--tl-bg-card);
    border-color: var(--tl-gold);
    box-shadow: var(--tl-shadow-gold);
    transform: translateY(-2px);
}

.templo-light .templo-radio-card input[type="radio"]:checked + .templo-radio-card-content .label {
    color: var(--tl-gold-dark);
}

/* UPLOAD */
.templo-light .templo-upload-box {
    position: relative;
    background: var(--tl-pearl);
    border: 2px dashed var(--tl-line);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.templo-light .templo-upload-box:hover {
    border-color: var(--tl-gold);
    background: var(--tl-bg-card);
}

.templo-light .templo-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.templo-light .templo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.templo-light .templo-upload-icon {
    font-size: 32px;
}

.templo-light .templo-upload-text {
    font-size: 13px;
    color: var(--tl-ink-muted);
    letter-spacing: 1px;
    font-weight: 500;
}

.templo-light .templo-foto-preview {
    margin-top: 16px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tl-gold);
}

/* BOTÃO SUBMIT */
.templo-light .templo-btn-submit {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--tl-ink) 0%, #2a2a2a 100%);
    color: var(--tl-gold-light);
    border: none;
    border-radius: 14px;
    font-family: 'Marcellus', serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--tl-shadow-md);
    margin-top: 8px;
}

.templo-light .templo-btn-submit:hover {
    background: linear-gradient(135deg, var(--tl-gold) 0%, var(--tl-gold-dark) 100%);
    color: var(--tl-bg-card);
    transform: translateY(-2px);
    box-shadow: var(--tl-shadow-lg);
}

.templo-light .templo-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.templo-light .templo-message {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    text-align: center;
    display: none;
    line-height: 1.5;
}

.templo-light .templo-message.success {
    background: #ECF7E8;
    color: #2D6A1F;
    border: 1px solid #B5D9A3;
    display: block;
}

.templo-light .templo-message.error {
    background: #FDECEC;
    color: #B91C1C;
    border: 1px solid #F4B5B5;
    display: block;
}

.templo-light .templo-cadastro-footer,
.templo-light .templo-consulta-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--tl-line-soft);
    color: var(--tl-ink-muted);
    font-size: 13px;
}

.templo-light .templo-cadastro-footer a,
.templo-light .templo-consulta-footer a {
    color: var(--tl-gold-dark);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--tl-gold-soft);
    padding-bottom: 1px;
    transition: all 0.3s;
}

.templo-light .templo-cadastro-footer a:hover,
.templo-light .templo-consulta-footer a:hover {
    color: var(--tl-gold);
    border-color: var(--tl-gold);
}

/* BACKGROUND DECORATIVO CLARO */
.templo-light .mystic-bg-light {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.templo-light .mystic-bg-light::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(212, 178, 122, 0.15) 0%, transparent 70%);
    animation: tlNebulaFloat 20s ease-in-out infinite;
}

.templo-light .mystic-bg-light::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(184, 148, 90, 0.1) 0%, transparent 70%);
    animation: tlNebulaFloat 25s ease-in-out infinite reverse;
}

@keyframes tlNebulaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, -3%) scale(1.05); }
}

/* ORNAMENTO */
.templo-light .ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 20px 0;
    color: var(--tl-gold);
}

.templo-light .ornament-divider::before,
.templo-light .ornament-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tl-gold-soft), transparent);
}

.templo-light .ornament-divider span {
    font-size: 12px;
    letter-spacing: 4px;
}
