:root {
    --bg-color: #07080b;
    --surface-color: rgba(15, 17, 23, 0.78);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #e11d48;
    --primary-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
    --accent-glow: rgba(225, 29, 72, 0.35);
    --border-color: rgba(244, 63, 94, 0.22);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-premium: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(225, 29, 72, 0.15);
}

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

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Trava rígida de tamanho em ícones SVG para impedir estouro de tamanho */
svg.google-icon, .google-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Background com efeitos de orbs pulsantes e grid cyberpunk sutil */
.background-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(244, 63, 94, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
    top: -15%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.3) 0%, rgba(153, 27, 27, 0.05) 70%);
}

.orb-2 {
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, rgba(15, 23, 42, 0) 70%);
    animation-delay: -6s;
}

.orb-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.08); }
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.auth-card {
    background: var(--surface-color);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.auth-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(225, 29, 72, 0.25);
}

/* Selo 18+ Exclusivo */
.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fb7185;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 24px;
    margin-left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.2);
}

.badge-icon {
    font-size: 12px;
}

/* Logo Header (Cumprindo a especificação Coherence sem duplicação de texto) */
.logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 0 24px;
}

.coherence-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.logo-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.panel-title .subtext-18 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
}

.card-content {
    padding: 0 32px 32px 32px;
    text-align: center;
}

h2 {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.description {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.description strong {
    color: #f43f5e;
}

.permissions-info {
    text-align: left;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.info-title {
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.permissions-info ul {
    list-style: none;
}

.permissions-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.permissions-info li:last-child {
    margin-bottom: 0;
}

.permissions-info .icon {
    width: 16px;
    height: 16px;
    color: #f43f5e;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Botão Google Dark Luxury com trava rígida contra estouro */
.btn-google {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(244, 63, 94, 0.35);
    background: linear-gradient(180deg, rgba(30, 35, 48, 0.9) 0%, rgba(18, 21, 30, 0.95) 100%);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(225, 29, 72, 0.1);
}

.btn-google:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.2) 0%, rgba(153, 27, 27, 0.3) 100%);
    border-color: rgba(244, 63, 94, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 25px rgba(225, 29, 72, 0.4);
}

.btn-google:active:not(:disabled) {
    transform: translateY(0);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-msg {
    margin-top: 18px;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: left;
}

.status-msg.hide {
    display: none;
}

.status-msg.success {
    background-color: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-msg.error {
    background-color: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-msg.loading {
    background-color: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-footer {
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 11px;
    color: #64748b;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(244, 63, 94, 0.3);
    border-top-color: #f43f5e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
