:root {
    --bg-color: #f9fafb;
    --surface-color: rgba(255, 255, 255, 0.75);
    --text-primary: #171717;
    --text-secondary: #64748b;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --border-color: rgba(226, 232, 240, 0.8);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
}

* {
    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;
}

/* Background com efeitos de blur e gradientes sutis */
.background-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background-color: rgba(59, 130, 246, 0.15); /* Azul */
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background-color: rgba(99, 102, 241, 0.12); /* Indigo */
}

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

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

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08), 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* Logo Header seguindo estritamente as regras de design Coherence */
.logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
    margin-bottom: 24px;
    padding: 0 24px;
}

.coherence-logo {
    height: 32px; /* Fixado em h-8 (32px) conforme a skill coherence_logo */
    width: auto;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 24px; /* h-6 conforme a skill */
    background-color: rgba(23, 23, 23, 0.15);
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    gap: 4px;
}

.panel-title .highlight {
    color: var(--primary-color);
}

.panel-title .subtext {
    color: #475569;
}

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

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
    letter-spacing: -0.5px;
}

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

.permissions-info {
    text-align: left;
    background-color: rgba(241, 245, 249, 0.6);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.info-title {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

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

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

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

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

/* Botão Google Premium com micro-animações */
.btn-google {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-google:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.google-icon {
    width: 20px;
    height: 20px;
}

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

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

.status-msg.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-msg.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-msg.loading {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-footer {
    padding: 16px;
    background-color: rgba(248, 250, 252, 0.7);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
}

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

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
