/* Kampio auth pages — register, login, password reset (2026) */

.auth-page {
    --auth-primary: var(--tmc-primary, #0d3440);
    --auth-primary-soft: #145161;
    --auth-accent: var(--tmc-accent, #f4a623);
    --auth-accent-2: var(--tmc-accent-2, #ffbc42);
    --auth-text: #10212b;
    --auth-muted: #5c6b72;
    --auth-border: #dde6ea;

    max-width: 580px;
    margin: 0 auto;
    padding: 12px 16px 72px;
    font-family: var(--tmc-font-family, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif);
}

.auth-page .auth-card {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    padding: 48px 38px 34px;
    box-shadow: 0 34px 90px rgba(3, 18, 25, 0.12);
    overflow: visible;
}

.auth-page .auth-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--auth-primary), var(--auth-accent), var(--auth-primary-soft));
    border-radius: 30px 30px 0 0;
}

.auth-page .auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    text-decoration: none;
}

.auth-page .auth-brand-mark {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-accent);
    background: linear-gradient(180deg, #fff9ec, #fff);
    border: 1px solid rgba(244, 166, 35, 0.35);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(244, 166, 35, 0.22);
}

.auth-page .auth-brand-mark svg {
    width: 38px;
    height: 38px;
}

.auth-page .auth-card h1 {
    margin: 0 0 8px;
    color: var(--auth-text);
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    line-height: 1.05;
    text-align: center;
    letter-spacing: 0;
}

.auth-page .auth-card__intro {
    margin: 0 0 24px;
    color: var(--auth-muted);
    text-align: center;
    font-weight: 650;
    line-height: 1.5;
}

.auth-page .auth-page__social {
    display: grid;
    gap: 12px;
    margin-bottom: 4px;
}

.auth-page .auth-page__footer-link {
    margin: 20px 0 0;
    text-align: center;
    color: var(--auth-muted);
    font-weight: 650;
    font-size: 0.95rem;
}

.auth-page .auth-page__footer-link a {
    color: var(--auth-primary);
    font-weight: 800;
    text-decoration: none;
}

.auth-page .auth-page__footer-link a:hover,
.auth-page .auth-page__footer-link a:focus-visible {
    color: var(--auth-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-page .modal-login-form,
.auth-page .auth-page__form {
    display: grid;
    gap: 14px;
}

.auth-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.auth-page .form-group label {
    font-size: 0.92rem;
    font-weight: 750;
    color: var(--auth-text);
}

.auth-page .form-group input[type="text"],
.auth-page .form-group input[type="email"],
.auth-page .form-group input[type="password"] {
    width: 100%;
    min-height: 60px;
    padding: 0 18px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 650;
    background: #f8fbfc;
    color: var(--auth-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-page .form-group input:focus {
    background: #fff;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(244, 166, 35, 0.18);
    outline: 0;
}

.auth-page .cf-turnstile {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page .favorite-login-main-btn,
.auth-page .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin-top: 4px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-soft));
    color: #fff;
    box-shadow: 0 16px 34px rgba(13, 52, 64, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-page .favorite-login-main-btn:hover,
.auth-page .favorite-login-main-btn:focus-visible,
.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
    color: var(--auth-primary);
    box-shadow: 0 14px 30px rgba(13, 52, 64, 0.14);
    outline: 0;
}

.auth-page .favorite-login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 16px;
    color: var(--auth-muted);
    font-weight: 700;
    text-align: center;
}

.auth-page .favorite-login-divider::before,
.auth-page .favorite-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-page .global-auth-error {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid rgba(176, 43, 43, 0.22);
    border-radius: 14px;
    background: #fff4f2;
    color: #8a1f16;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}

.auth-page .global-auth-info {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid rgba(13, 52, 64, 0.12);
    border-radius: 14px;
    background: #f4fafc;
    color: var(--auth-primary);
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}

.auth-page .favorite-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    box-sizing: border-box;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    background: #fff;
    color: var(--auth-text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-page .favorite-social-btn:hover,
.auth-page .favorite-social-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(13, 52, 64, 0.24);
    background: #fbfdfd;
    box-shadow: 0 14px 30px rgba(13, 52, 64, 0.14);
    outline: 0;
}

.auth-page .favorite-social-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex: 0 0 auto;
}

.auth-page .favorite-social-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.auth-page .auth-page__forgot-link {
    margin: 16px 0 0;
    text-align: center;
    font-weight: 650;
    font-size: 0.92rem;
}

.auth-page .auth-page__forgot-link a {
    color: var(--auth-muted);
    text-decoration: none;
}

.auth-page .auth-page__forgot-link a:hover,
.auth-page .auth-page__forgot-link a:focus-visible {
    color: var(--auth-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 640px) {
    .auth-page {
        padding: 8px 12px 64px;
    }

    .auth-page .auth-card {
        padding: 42px 20px 24px;
        border-radius: 24px;
    }

    .auth-page .auth-card::before {
        border-radius: 24px 24px 0 0;
    }

    .auth-page .auth-brand-mark {
        width: 52px;
        height: 52px;
    }

    .auth-page .auth-brand-mark svg {
        width: 34px;
        height: 34px;
    }
}

/* Admin PWA install banner (login page) */
.admin-pwa-install {
    margin: 0 0 16px;
    background: linear-gradient(135deg, #0F2D3A 0%, #1A3A4A 100%);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(15,45,58,.18);
}
.admin-pwa-install__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 18px; flex-wrap: wrap;
}
.admin-pwa-install__title { display: block; font-size: .9rem; font-weight: 800; }
.admin-pwa-install__text { margin: 4px 0 0; font-size: .78rem; color: rgba(255,255,255,.75); line-height: 1.4; }
.admin-pwa-install__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.admin-pwa-install__cta {
    background: #F4A623; color: #0F2D3A; border: none; border-radius: 10px;
    padding: 8px 16px; font-size: .82rem; font-weight: 800; cursor: pointer;
}
.admin-pwa-install__link { color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 700; text-decoration: underline; }
.admin-pwa-install__dismiss {
    background: rgba(255,255,255,.12); border: none; color: #fff; width: 28px; height: 28px;
    border-radius: 8px; font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.admin-pwa-install__help {
    padding: 0 18px 14px; font-size: .76rem; color: rgba(255,255,255,.8); line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px;
}
.admin-pwa-install__help p { margin: 0 0 8px; }
.admin-pwa-install__help p:last-child { margin-bottom: 0; }
body.kampio-admin-app .admin-pwa-install { display: none !important; }
