/* 04_auth.css — Authentication page (ported from styles.py inject_auth_styles,
   Streamlit stForm/stTextInput selectors replaced with real classes). */

.auth-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 24px 64px 24px;
}

.auth-title {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.24px;
    font-size: 26px;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin-bottom: 4px;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
    text-align: center;
    margin-top: 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-opaque);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
}

.auth-card .form-row { margin-bottom: 14px; }
.auth-card .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-benefits {
    background: var(--bg-green-light);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
}
.auth-benefits ul {
    margin: 0;
    padding-left: 18px;
}
.auth-benefits li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-section {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: var(--bg-hover);
    border-radius: 8px;
}
.info-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.info-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0.25rem 0;
}
.legal-disclaimer {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

.auth-info-details {
    border: 1px solid var(--border-opaque);
    border-radius: 12px;
    background: var(--bg-card);
    margin-top: 1.5rem;
}
.auth-info-details summary {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}
.auth-info-details .details-body { padding: 0 1rem 1rem 1rem; }

.auth-page a { color: var(--success); text-decoration: underline; }
.auth-page a:hover { color: var(--text-primary); }

/* Social login — one-click OAuth buttons (Google / Microsoft / Facebook).
   Brand glyph colors are theme-invariant (provider brand marks), per the
   third-party share-button convention in 00_tokens.css. */
.social-login-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-opaque);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.social-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    color: var(--text-primary) !important;
}

.social-btn--google::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.9 1.2 8 3l5.7-5.7C34.5 6.1 29.5 4 24 4 13 4 4 13 4 24s9 20 20 20 20-9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.9 1.2 8 3l5.7-5.7C34.5 6.1 29.5 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 10-2 13.6-5.2l-6.3-5.3C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231977F2' d='M43.6 20.1H42V20H24v8h11.3c-.8 2.3-2.3 4.3-4.1 5.7l6.3 5.3C38.4 37.9 44 32.5 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.social-btn--azure::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23 23'%3E%3Cpath fill='%23f25022' d='M1 1h10v10H1z'/%3E%3Cpath fill='%237fb900' d='M12 1h10v10H12z'/%3E%3Cpath fill='%23ffa500' d='M1 12h10v10H1z'/%3E%3Cpath fill='%2300a4ef' d='M12 12h10v10H12z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.social-btn--facebook::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231877F2' d='M24 12.07C24 5.4 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.09 10.13 24v-8.44H7.08v-3.49h3.04V9.41c0-3.02 1.8-4.7 4.54-4.7 1.31 0 2.68.24 2.68.24v2.97h-1.5c-1.5 0-1.96.93-1.96 1.89v2.26h3.32l-.53 3.5h-2.8V24C19.61 23.1 24 18.1 24 12.07z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px 0;
    color: var(--text-gray);
    font-size: 0.85rem;
}
.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-opaque);
}

/* ---- Admin: Planes (feature × plan matrix) ---- */

.plans-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 150px 170px 170px;
    gap: 14px;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-opaque);
}
.plans-row.plans-header {
    font-weight: 700;
    color: var(--text-strong);
    border-bottom: 2px solid var(--brand-green);
}
.plans-feature-name {
    margin: 0;
    font-weight: 600;
}
.plans-feature-desc {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}
.plans-col-header {
    font-size: 0.85rem;
    text-align: center;
}
.plans-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.plans-quota-input {
    text-align: center;
}
.plans-inf-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-gray);
    cursor: pointer;
}
.plans-period .Select-value-label {
    font-size: 0.85rem;
}
@media (max-width: 720px) {
    .plans-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .plans-col-header {
        display: none;
    }
}
