/* GameCycle Auth Widget – auth-form.css */

.gca-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 460px;
    margin: 0 auto;
}

/* ── Card ── */
.gca-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* ── Logo ── */
.gca-logo {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #111;
    margin-bottom: 1.25rem;
}

/* ── Logged in state ── */
.gca-logged-in {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: .9rem;
    color: #166534;
}
.gca-logged-in a { color: #15803d; }

/* ── Tabs ── */
.gca-tabs {
    display: flex;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 1.5rem;
    gap: 0;
}
.gca-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    transition: color .15s;
}
.gca-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #111;
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transition: opacity .15s;
}
.gca-tab.active        { color: #111; }
.gca-tab.active::after { opacity: 1; }
.gca-tab:hover:not(.active) { color: #6b7280; }

/* ── Social buttons ── */
.gca-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1rem; }
.gca-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.gca-btn-google {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}
.gca-btn-google:hover { background: #f9fafb; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.gca-btn-facebook {
    background: #1877F2;
    border: 1px solid #1877F2;
    color: #fff;
}
.gca-btn-facebook:hover { background: #166fe5; }

/* ── Divider ── */
.gca-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: .25rem 0;
    color: #d1d5db;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.gca-divider::before,
.gca-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.gca-divider span { color: #9ca3af; }

/* ── Panes ── */
.gca-pane         { display: none; }
.gca-pane.active  { display: block; }

/* ── Headings ── */
.gca-heading    { font-size: 1.1rem; font-weight: 700; color: #111; margin: 0 0 4px; }
.gca-subheading { font-size: .825rem; color: #6b7280; margin: 0 0 1.25rem; }

/* ── Fields ── */
.gca-field { margin-bottom: .875rem; }
.gca-field label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 5px;
}
.gca-field label span { color: #ef4444; margin-left: 2px; }

.gca-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.gca-label-row label { margin-bottom: 0; }

.gca-input {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: .875rem;
    color: #111;
    background: #fafafa;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-sizing: border-box;
    appearance: none;
}
.gca-input:focus {
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}

/* ── Password input wrapper (show/hide button) ── */
.gca-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
    overflow: hidden;
}
.gca-input-wrap:focus-within {
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}
.gca-input-wrap .gca-input {
    border: none;
    background: transparent;
    box-shadow: none;
    flex: 1;
    padding-right: 40px;
}
.gca-input-wrap .gca-input:focus { box-shadow: none; }
.gca-toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.gca-toggle-pw:hover { color: #374151; }

/* ── Password strength ── */
.gca-pw-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.gca-pw-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.gca-pw-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width .3s, background .3s;
}
.gca-pw-fill.weak     { background: #ef4444; }
.gca-pw-fill.fair     { background: #f97316; }
.gca-pw-fill.good     { background: #eab308; }
.gca-pw-fill.strong   { background: #22c55e; }
.gca-pw-label { font-size: .7rem; font-weight: 600; color: #6b7280; min-width: 44px; text-align: right; }

/* ── Two-column row ── */
.gca-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Custom checkbox ── */
.gca-checkbox-field { margin-top: .25rem; margin-bottom: .75rem; }
.gca-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .8125rem;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
}
.gca-checkbox { display: none; }
.gca-checkmark {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    margin-top: 1px;
    background: #fff;
    transition: background .15s, border-color .15s;
    position: relative;
}
.gca-checkbox:checked + .gca-checkmark {
    background: #111;
    border-color: #111;
}
.gca-checkbox:checked + .gca-checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.gca-terms-links { margin-left: 4px; white-space: nowrap; }
.gca-terms-links a { color: #374151; text-decoration: underline; }
.gca-terms-links a:hover { color: #111; }

/* ── Primary button ── */
.gca-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: .25rem;
}
.gca-btn-primary:hover   { background: #333; transform: translateY(-1px); }
.gca-btn-primary:active  { transform: scale(.98); }
.gca-btn-primary:disabled{ background: #9ca3af; cursor: not-allowed; transform: none; }

/* ── Forgot / back links ── */
.gca-forgot-link, .gca-back-link {
    background: none;
    border: none;
    font-family: inherit;
    font-size: .8rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color .15s;
}
.gca-forgot-link:hover, .gca-back-link:hover { color: #111; }
.gca-back-link {
    display: block;
    text-align: center;
    margin-top: .75rem;
    width: 100%;
}

/* ── Error / success alerts ── */
.gca-error {
    padding: 10px 14px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 7px;
    font-size: .8125rem;
    margin-bottom: .75rem;
    line-height: 1.5;
}
.gca-success {
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: 7px;
    font-size: .8125rem;
    margin-bottom: .75rem;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .gca-card { padding: 1.5rem 1.25rem; }
    .gca-row  { grid-template-columns: 1fr; }
}
