/* Shared public login / signup / forgot / reset cards. Do not restyle these per page. */

body.gate-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.gate-page .footer {
    margin-top: auto;
}

.gate {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
    background: var(--home-bg, #f5f5f7);
}

.gate-card {
    width: min(520px, calc(100% - 36px));
    background: #fff;
    border: 1px solid var(--home-line, #e5e7eb);
    border-radius: 22px;
    padding: 2.4rem 2.2rem 2rem;
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.06);
    box-sizing: border-box;
}

.gate-card.gate-card-chooser {
    width: min(720px, calc(100% - 36px));
}

.gate-card h1,
.gate-title {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
}

.gate-card > p,
.gate-sub {
    margin: 0 0 1.4rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--home-muted, #6b7280);
}

.gate-choices {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .gate-choices { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
    .gate-card-chooser .gate-choices { grid-template-columns: 1fr 1fr 1fr; }
}

.gate-choice {
    display: block;
    padding: 1.35rem 1.2rem;
    border: 1px solid var(--home-line, #e5e7eb);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    min-height: 140px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.gate-choice:hover {
    border-color: #111;
    background: #fff;
}

.gate-choice strong {
    display: block;
    font-size: 1.02rem;
}

.gate-choice span {
    display: block;
    margin-top: 0.2rem;
    color: var(--home-muted, #6b7280);
    font-size: 0.88rem;
}

.gate-alert,
.gate-notice {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    border: 1px solid #e5e7eb;
}

.gate-alert-error,
.gate-notice.err {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.gate-alert-ok,
.gate-notice.ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.gate-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.gate-tab {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease-in-out;
}

.gate-tab.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.gate-form .form-group,
.gate-field {
    margin-bottom: 1rem;
}

.gate-form label,
.gate-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    color: #111;
}

.gate-form input,
.gate-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #111;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.gate-form input:focus,
.gate-field input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.gate-page .gate-submit,
.gate-page .gate-btn,
.gate-page button.btn-home-dark.gate-submit,
.gate-page a.gate-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 0.35rem;
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    background: #111;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.18s ease-in-out;
}

.gate-page .gate-submit:hover,
.gate-page .gate-btn:hover,
.gate-page button.btn-home-dark.gate-submit:hover {
    background: #000;
    transform: translateY(-1px);
}

.gate-page .gate-btn.ghost {
    background: #fff;
    color: #111 !important;
    border: 1px solid #d1d5db;
    margin-top: 10px;
}

.gate-forgot {
    margin: 0.2rem 0 0;
    text-align: right;
    font-size: 13px;
}

.gate-forgot a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
}

.gate-forgot a:hover {
    color: #111;
}

.gate-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}

.gate-divider::before,
.gate-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.gate-google-form {
    margin: 0;
}

.gate-google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.18s ease-in-out;
}

.gate-google-btn:hover {
    border-color: #111;
    background: #fff;
    transform: translateY(-1px);
}

.gate-google-icon {
    flex-shrink: 0;
}

.gate-switch-nav {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.gate-switch-nav a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.gate-switch-nav a:hover {
    text-decoration: underline;
}

.gate-switch-sep {
    color: #9ca3af;
    font-weight: 400;
}

.gate-switch {
    margin-top: 1rem;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.gate-switch a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.gate-switch a:hover {
    text-decoration: underline;
}

.gate-plan-summary {
    background: #f8f9fa;
    border: 1px solid var(--home-line, #e5e7eb);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gate-plan-info strong {
    display: block;
    font-size: 1.05rem;
    color: #111;
}

.gate-plan-info span {
    font-size: 0.88rem;
    color: var(--home-muted, #6b7280);
}

.gate-plan-price {
    text-align: right;
}

.gate-plan-price .gate-price-amt {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
}

.gate-plan-price .gate-price-was {
    font-size: 0.95rem;
    color: var(--home-muted, #6b7280);
    text-decoration: line-through;
    margin-right: 0.35rem;
}

.gate-legal,
.gate-trust {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--home-muted, #6b7280);
    line-height: 1.45;
}

.gate-legal a {
    color: #111;
    text-decoration: underline;
}

.gate-form .sms-consent {
    margin: 0.15rem 0 1rem;
}

.gate-form .sms-consent span,
.gate-form .sms-phone-note {
    color: var(--home-muted, #6b7280);
    font-size: 0.8rem;
    line-height: 1.45;
}

.gate-readonly {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--home-line, #e5e7eb);
    border-radius: 12px;
    background: #f8f9fa;
    font-size: 1rem;
}

.gate-card-center {
    text-align: center;
}

.gate-icon-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: #f4f4f5;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-email-pill {
    display: inline-block;
    background: #f4f4f5;
    color: #111;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    word-break: break-all;
    margin-bottom: 1.4rem;
}

.gate-security-notice {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin: 1.4rem 0 1.8rem;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #444;
}

.gate-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.gate-page .gate-btn-outline {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    color: #111 !important;
    border: 1px solid #d1d5db;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.18s ease-in-out;
}

.gate-page .gate-btn-outline:hover {
    border-color: #111;
}
