/**
 * Login Page — Split-Panel Design
 *
 * Scoped to body.tutor-login-page-body (Tutor LMS login page) so these
 * rules never bleed into other pages even though the file loads globally
 * via the child-theme CSS glob.
 *
 * The WooCommerce my-account login also uses the same .cl-* classes, so
 * the card-level rules apply there too via the shared class names.
 *
 * @package FlatSomeChild
 */

/* ── Tutor login content-area reset ───────────────────────────────────────── */

/* Strip Tutor's default page wrapper padding so cl-page owns the content area */
.tutor-login-page-body.tutor-page-wrap {
    padding: 0;
    margin: 0;
    max-width: none;
    background: #d6e8f6;
}

/* ── WooCommerce my-account login (secondary login path) ──────────────────── */

body.woocommerce-account.logged-out #wrapper {
    background: #d6e8f6;
    min-height: 100vh;
}

body.woocommerce-account.logged-out #main {
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

body.woocommerce-account.logged-out .woocommerce {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* ── Page split layout ────────────────────────────────────────────────────── */

.cl-page {
    display: flex;
    gap: 55px;
    min-height: 100vh;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.cl-page #tutor-registration-form {
    padding: 0;
}

/* Left: brand / logo panel */
.cl-brand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d6e8f6;
    padding: 48px 0;
}

.cl-brand-logo {
    max-width: 260px;
    width: 65%;
    height: auto;
    display: block;
}

/* Right: form panel */
.cl-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d6e8f6;
    padding: 48px 0;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.cl-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    box-shadow: 0 6px 32px rgba(20, 40, 90, 0.10);
}

/* ── Title ────────────────────────────────────────────────────────────────── */

.cl-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(321.04deg, #0200B9 22.36%, #020207 77.64%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 0 0 24px;
    padding: 0;
    line-height: 1.2;
    border: none;
}

/* ── Login error alerts ────────────────────────────────────────────────────── */

.cl-alert {
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    padding: 10px 14px;
    list-style: none;
}

.cl-card .woocommerce-error,
.cl-card .woocommerce-message,
.cl-card .woocommerce-info {
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    padding: 10px 14px;
    list-style: none;
}

/* ── Input fields ─────────────────────────────────────────────────────────── */

.cl-form .cl-field-wrap {
    position: relative;
    margin-bottom: 14px;
}

.cl-form .cl-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b4;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.cl-form .cl-input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1.5px solid #dde4ef;
    border-radius: 8px;
    font-size: 15px;
    color: #2c3e50;
    background: #ffffff;
    transition: border-color 0.2s;
    box-sizing: border-box;
    outline: none;
    box-shadow: none;
    margin: 0;
    height: auto;
    line-height: 1.5;
}

.cl-form .cl-input::placeholder {
    color: #b0bac9;
}

.cl-form .cl-input:focus {
    border-color: #3d5af1;
}

/* ── Forgot password ──────────────────────────────────────────────────────── */

.cl-forgot-row {
    text-align: right;
    margin-bottom: 20px;
    margin-top: 4px;
}

.cl-forgot-link {
    font-size: 14px;
    color: #4a5568;
    text-decoration: underline;
}

.cl-forgot-link:hover {
    color: #3d5af1;
    text-decoration: underline;
}

/* ── Submit button ────────────────────────────────────────────────────────── */

#wrapper .cl-submit-btn,
#wrapper .cl-submit-btn:visited,
#wrapper .cl-submit-btn:link {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(321.04deg, #0200B9 22.36%, #020207 77.64%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin: 0;
    text-transform: none;
    height: auto;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */

.cl-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px 0;
    font-size: 16px;
    font-weight: 400;
    color: #4F4747;
}

/* ── Social login area ────────────────────────────────────────────────────── */

.cl-social {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.cl-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid #e0e6ef;
    border-radius: 50%;
    background: #ffffff;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cl-google-btn:hover {
    border-color: #b8c8dc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ── Terms & Conditions checkbox row ─────────────────────────────────────── */

.cl-toc-row {
    margin-bottom: 16px;
}

.cl-toc-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.cl-toc-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.cl-toc-label a {
    color: #3d5af1;
    text-decoration: underline;
}

/* ── Register link ────────────────────────────────────────────────────────── */

.cl-register-link {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    padding: 0;
}

.cl-register-link a {
    background: linear-gradient(321.04deg, #0200B9 22.36%, #020207 77.64%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-decoration: none;
}

.cl-register-link a:hover {
    text-decoration: underline;
}

/* ── Mobile (stacked layout) ──────────────────────────────────────────────── */

@media (max-width: 767px) {
    .cl-page {
        flex-direction: column;
    }

    .cl-brand {
        padding: 36px 24px;
        min-height: 200px;
        flex: none;
    }

    .cl-brand-logo {
        max-width: 160px;
        width: 50%;
    }

    .cl-form-panel {
        flex: none;
        padding: 24px 16px 40px;
    }

    .cl-card {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .cl-title {
        font-size: 22px;
    }
}
