:root {
    --primary: #0d6efd;
    --primary-dark: #084dbf;
    --secondary: #1e293b;
    --light: #ffffff;
    --light2: #f5f7fb;
    --border: #e2e8f0;
    --text: #1f2937;
    --muted: #64748b;
    --success: #10b981;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.signup-page {
    background: var(--light2);
    min-height: 100vh;
    padding: 40px 80px 50px;
}

.signup-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 650px;
    gap: 50px;
    align-items: start;
}
.full-width {
    grid-column: 1 / -1;
}

.custom-file {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
}

.custom-file input {
    display: none;
}

.file-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.file-name {
    color: var(--muted);
    font-size: 14px;
}

.signup-showcase {
    padding-right: 30px;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.signup-showcase h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 800;
}

.signup-showcase p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 6px;
}

.stat-card span {
    color: var(--muted);
}

.signup-card {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--muted);
    line-height: 1.7;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    height: 55px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    background: #fff;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.captcha-section {
    margin-top: 10px;
    margin-bottom: 25px;
}

.captcha-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.captcha-wrapper img {
    height: 55px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.captcha-wrapper button {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.captcha-wrapper button:hover {
    background: var(--primary-dark);
}

.captcha-section input {
    width: 100%;
    height: 55px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 16px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.terms-check input {
    margin-top: 4px;
}

.terms-check label {
    color: var(--muted);
    line-height: 1.6;
}

.signup-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.25);
}

.login-link {
    text-align: center;
    margin-top: 25px;
    color: var(--muted);
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Tablet: stack panels, reduce outer padding */
@media (max-width: 1200px) {
    .signup-container {
        grid-template-columns: 1fr;
    }
    .signup-showcase {
        padding-right: 0;
    }
    .signup-page {
        padding: 32px 40px 48px;
    }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
    .signup-page {
        padding: 20px 16px 36px;
    }
    .signup-showcase h1 {
        font-size: 2rem;
    }
    .signup-showcase p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    /* Keep 2×2 stats grid — single column is too stretched */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 20px 16px;
    }
    .stat-card h3 {
        font-size: 1.6rem;
    }
    .signup-card {
        padding: 28px 22px;
        border-radius: 22px;
    }
    .form-header h2 {
        font-size: 1.7rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group {
        margin-bottom: 14px;
    }
    .form-group input,
    .form-group select {
        height: 50px;
        font-size: 14px;
        border-radius: 12px;
    }
    .captcha-section input {
        height: 50px;
    }
    .signup-btn {
        height: 52px;
        font-size: 15px;
        border-radius: 14px;
    }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
    .signup-page {
        padding: 14px 12px 28px;
    }
    .showcase-badge {
        font-size: 12px;
        padding: 8px 14px;
    }
    .signup-showcase h1 {
        font-size: 1.7rem;
    }
    .stats-grid {
        gap: 10px;
    }
    .stat-card {
        padding: 16px 12px;
    }
    .stat-card h3 {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    .signup-card {
        padding: 22px 16px;
        border-radius: 18px;
    }
    .form-header {
        margin-bottom: 24px;
    }
    .form-header h2 {
        font-size: 1.5rem;
    }
    .form-group input,
    .form-group select {
        height: 48px;
        font-size: 14px;
    }
    .captcha-wrapper {
        flex-wrap: wrap;
    }
    .captcha-wrapper img {
        flex: 1;
        min-width: 0;
    }
    .password-grid {
        grid-template-columns: 1fr !important;
    }
    .signup-btn {
        height: 50px;
    }
}

/* ── Required asterisk ─────────────────────────────────────── */
.req { color: #e53e3e; margin-left: 2px; font-weight: 700; }

/* ── Field errors ──────────────────────────────────────────── */
.field-error { display: block; color: #e53e3e; font-size: 12px; margin-top: 5px; }
.input-error  { border-color: #e53e3e !important; box-shadow: 0 0 0 3px rgba(229,62,62,.12) !important; }

/* ── Alert box ─────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; }
.alert-danger  { background: #fff5f5; border: 1px solid #fed7d7; color: #c53030; }
.alert-danger ul { margin: 0; padding-left: 18px; }
.alert-danger li { margin-top: 4px; }

/* ── Password strength bar ─────────────────────────────────── */
.pw-strength { margin-top: 6px; height: 4px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.pw-strength__bar { height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }
.pw-hint { font-size: 11px; color: #64748b; margin-top: 4px; }

/* ── Password show/hide toggle ─────────────────────────────── */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.toggle-pw {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #64748b; padding: 4px;
}
