body.page-auth main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f5f9 100%);
}

.wrapper {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(20, 30, 60, 0.1);
    border: 1px solid #e9ecf4;
    overflow: hidden;
}

/* Card brand header (replaces the old left promo panel) */
.card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.2px;
    color: var(--text);
    margin-bottom: 30px;
}

    .card-brand .logo {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
    }

/* Form panel */
.form-panel {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 36px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

    .tab-btn:hover:not(.active) {
        color: var(--text);
    }

    .tab-btn.active {
        background: #fff;
        color: var(--primary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

.form-view {
    display: none;
}

    .form-view.active {
        display: block;
        animation: fadeIn .25s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-view h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #111827;
    margin-bottom: 7px;
}

.form-view .subtitle {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 34px;
}

.field {
    margin-bottom: 20px;
    position: relative;
}

    .field label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.2px;
        margin-bottom: 7px;
        color: #4b5567;
        transition: color .15s ease;
    }

    .field:focus-within label {
        color: var(--primary);
    }

    .field input,
    .field select {
        width: 100%;
        padding: 12.5px 15px;
        border: 1px solid #e4e7f0;
        border-radius: 10px;
        font-size: 14px;
        outline: none;
        transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
        background: #f8f9fc;
    }

        .field input:hover,
        .field select:hover {
            border-color: #d3d8e6;
        }

        .field input:focus,
        .field select:focus {
            border-color: var(--primary);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(43, 87, 209, 0.1);
        }

        .field input.invalid {
            border-color: var(--error);
        }

    .field .error-msg {
        display: none;
        color: var(--error);
        font-size: 12px;
        margin-top: 6px;
    }

    .field.has-error .error-msg {
        display: block;
    }

    .field.has-error input {
        border-color: var(--error);
    }

/* Phone Input Group (20:80 Split Container) */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #e4e7f0;
    border-radius: 10px;
    background: #f8f9fc;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    .phone-input-group:hover {
        border-color: #d3d8e6;
    }

    .phone-input-group:focus-within {
        border-color: var(--primary);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(43, 87, 209, 0.1);
    }

    .phone-input-group select {
        width: 20%;
        border: none;
        background: transparent;
        padding: 12.5px 8px;
        outline: none;
        cursor: pointer;
    }

.phone-divider {
    width: 1px;
    height: 24px;
    background: #e4e7f0;
}

.phone-input-group input {
    width: 80%;
    border: none;
    background: transparent;
    padding: 12.5px 15px;
    outline: none;
    box-shadow: none !important;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.toggle-pass {
    position: absolute;
    right: 12px;
    top: 22px; /* Centers it perfectly relative to the input height alone */
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color .15s ease, background .15s ease;
}
    .toggle-pass:hover {
        color: var(--primary);
        background: #f3f6ff;
    }

    .toggle-pass svg {
        width: 18px;
        height: 18px;
    }

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

    .checkbox-line input {
        width: 15px;
        height: 15px;
        accent-color: var(--primary);
        cursor: pointer;
    }

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s ease;
}

    .link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.btn-primary {
    width: 100%;
    padding: 13.5px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
    box-shadow: 0 6px 16px rgba(43, 87, 209, 0.22);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(43, 87, 209, 0.28);
    }

    .btn-primary:active {
        transform: translateY(0) scale(0.99);
        box-shadow: 0 4px 10px rgba(43, 87, 209, 0.22);
    }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

    .divider:before,
    .divider:after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e5e9f2;
    }

.social-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-social {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1.5px solid #e4e7f0;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .18s ease, transform .15s ease, box-shadow .18s ease, background .18s ease;
}

    .btn-social svg {
        width: 22px;
        height: 22px;
        display: block;
        transition: transform .18s ease;
    }

    .btn-social:hover {
        border-color: var(--primary);
        background: #f8faff;
        transform: translateY(-3px);
        box-shadow: 0 12px 22px rgba(43, 87, 209, 0.16);
    }

        .btn-social:hover svg {
            transform: scale(1.08);
        }

    .btn-social:active {
        transform: translateY(-1px) scale(0.97);
    }

.switch-line {
    text-align: center;
    margin-top: 28px;
    font-size: 13.5px;
    color: var(--muted);
}

.status-msg {
    display: none;
    padding: 11px 15px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

    .status-msg.show {
        display: block;
        animation: fadeIn .2s ease;
    }

    .status-msg.success {
        background: #e8f8ee;
        color: var(--success);
    }

    .status-msg.error {
        background: #fdeaf0;
        color: var(--error);
    }

.strength-bar {
    height: 5px;
    border-radius: 3px;
    background: #e5e9f2;
    margin-top: 8px;
    overflow: hidden;
}

    .strength-bar span {
        display: block;
        height: 100%;
        width: 0%;
        background: var(--error);
        transition: width .2s ease, background .2s ease;
    }

.strength-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

@media (max-width: 520px) {
    body.page-auth main {
        padding: 24px 16px;
    }

    .form-panel {
        padding: 32px 26px;
    }

    .row-2 {
        grid-template-columns: 1fr;
    }
}

/* Ensure navbar stays on top and doesn't shift when modals open */
header, .navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1050; /* Bootstrap modal ke z-index se zyada ya barabar taaki conflict na ho */
    background: #ffffff;
}

