/*
 * VGCSC Login / Register / Forgot-Password Page
 * Same colour palette as member-account.css
 */

/* ── Variables & reset ───────────────────────────────────────────── */
.vgcsc-login-page,
.vgcsc-login-page * { box-sizing: border-box; }

.vgcsc-login-page {
    --navy:       #1C2C4C;
    --cyan:       #00d9de;
    --white:      #ffffff;
    --grey:       #f4f6f8;
    --border:     #dce4ef;
    --text-muted: #5a6a8a;
    --radius:     10px;
    --shadow:     0 2px 18px rgba(28, 44, 76, .11);
    --ease:       .18s ease;

    max-width: 480px;
    margin: 40px auto 64px;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--navy);
}

/* ── Header ──────────────────────────────────────────────────────── */
.vgcsc-login-header {
    background: var(--navy);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 36px 36px 28px;
    text-align: center;
    color: var(--white);
}

.vgcsc-login-logo {
    width: 60px;
    height: 60px;
    background: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--navy);
}

.vgcsc-login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--white);
}

.vgcsc-login-subtitle {
    font-size: .875rem;
    color: rgba(255, 255, 255, .65);
    margin: 0;
}

/* ── Tabs ────────────────────────────────────────────────────────── */
.vgcsc-login-tabs {
    display: flex;
    background: var(--navy);
}

.vgcsc-login-tab {
    flex: 1;
    padding: 12px 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color var(--ease), border-color var(--ease), background var(--ease);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.vgcsc-login-tab:hover { color: var(--white); }

.vgcsc-login-tab.active {
    color: var(--white);
    border-bottom-color: var(--cyan);
    background: rgba(0, 217, 222, .08);
}

/* ── Panels ──────────────────────────────────────────────────────── */
.vgcsc-login-panel {
    display: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 32px 36px 30px;
    box-shadow: var(--shadow);
}

.vgcsc-login-panel.active {
    display: block;
    animation: vgcsc-lp-fadein .2s ease;
}

@keyframes vgcsc-lp-fadein {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form elements ───────────────────────────────────────────────── */
.vgcsc-lf-group {
    margin-bottom: 18px;
}

.vgcsc-lf-group label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.vgcsc-req { color: #b02030; }

.vgcsc-lf-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: .925rem;
    color: var(--navy);
    background: var(--white);
    transition: border-color var(--ease), box-shadow var(--ease);
    font-family: inherit;
}

.vgcsc-lf-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 222, .15);
}

/* Password wrap */
.vgcsc-lf-pw-wrap { position: relative; }
.vgcsc-lf-pw-wrap .vgcsc-lf-input { padding-right: 46px; }

.vgcsc-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    font-size: .9rem;
    transition: color var(--ease);
    line-height: 1;
}
.vgcsc-pw-toggle:hover { color: var(--navy); }

/* Remember me */
.vgcsc-lf-remember { margin-bottom: 20px; }

.vgcsc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
}

.vgcsc-checkbox-label input[type="checkbox"] {
    accent-color: var(--cyan);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Status messages */
.vgcsc-lf-status {
    font-size: .875rem;
    margin-bottom: 16px;
    min-height: 0;
    border-radius: 7px;
    padding: 0;
    transition: padding var(--ease);
}

.vgcsc-lf-status.error {
    color: #b02030;
    background: #fdf2f3;
    border: 1px solid #f1c0c5;
    padding: 10px 14px;
}

.vgcsc-lf-status.success {
    color: #0b5e35;
    background: #e4f5ec;
    border: 1px solid #a8d9bb;
    padding: 10px 14px;
}

/* Submit button */
.vgcsc-lf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: var(--cyan);
    color: var(--navy);
    border: 2px solid transparent;
    border-radius: 7px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), opacity var(--ease), border-color var(--ease);
    font-family: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.vgcsc-lf-submit:hover {
    background: var(--navy);
    color: var(--cyan);
    border-color: var(--navy);
    text-decoration: none;
}

.vgcsc-lf-submit:disabled,
.vgcsc-lf-submit[disabled] {
    opacity: .65;
    cursor: not-allowed;
}

/* Links below form */
.vgcsc-lf-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.vgcsc-lf-links a {
    font-size: .82rem;
    color: var(--text-muted);
    text-decoration: underline;
    transition: color var(--ease);
}

.vgcsc-lf-links a:hover { color: var(--navy); }

/* Intro text */
.vgcsc-lf-intro {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0 0 22px;
    line-height: 1.55;
}

/* ── Register panel ──────────────────────────────────────────────── */
.vgcsc-register-block {
    text-align: center;
    padding: 8px 0;
}

.vgcsc-register-icon {
    font-size: 3.2rem;
    color: var(--cyan);
    margin-bottom: 16px;
    line-height: 1;
}

.vgcsc-register-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 12px;
}

.vgcsc-register-intro {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.6;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.vgcsc-lf-register-btn {
    max-width: 280px;
    margin: 0 auto 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .vgcsc-login-page { margin-top: 20px; }

    .vgcsc-login-header,
    .vgcsc-login-panel { padding-left: 22px; padding-right: 22px; }

    .vgcsc-login-tab { font-size: .76rem; padding: 10px 4px; gap: 4px; }
    .vgcsc-login-tab i { display: none; }
}
