/**
 * CAMS AUTH — Consolidated Auth Page Styles
 *
 * ALL login/registration page styles in one file.
 * Loaded ONLY on auth pages via cams_enqueue_tutor_auth_assets().
 *
 * @package TutorStarter_Child
 * @version 2.0.0
 */


/* ================================================
   1. SITE CHROME HIDING
   Hide header, footer, dashboard elements on auth pages
   ================================================ */

body.cams-auth-body {
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- UNIVERSAL HEADER/FOOTER HIDING on auth pages ---- */
/* Targets ALL possible header & footer elements */
body.cams-auth-body #page,
body.cams-auth-body .site,
body:has(.cams-auth-page) #page,
body:has(.cams-auth-page) .site {
    display: none;
}

body.cams-auth-body header,
body.cams-auth-body .header-default,
body.cams-auth-body .header-transparent,
body.cams-auth-body .site-header,
body.cams-auth-body [data-elementor-type="header"],
body.cams-auth-body .elementor-location-header,
body:has(.cams-auth-page) header,
body:has(.cams-auth-page) .site-header,
body:has(.cams-auth-page) [data-elementor-type="header"],
body:has(.cams-auth-page) .elementor-location-header {
    display: none !important;
}

body.cams-auth-body footer,
body.cams-auth-body .site-footer,
body.cams-auth-body .footer-widgets,
body.cams-auth-body #colophon,
body.cams-auth-body [data-elementor-type="footer"],
body.cams-auth-body .elementor-location-footer,
body:has(.cams-auth-page) footer,
body:has(.cams-auth-page) .site-footer,
body:has(.cams-auth-page) [data-elementor-type="footer"],
body:has(.cams-auth-page) .elementor-location-footer {
    display: none !important;
}

/* Hide Tutor dashboard wrapper on registration page */
body.cams-auth-body .tutor-dashboard .tutor-frontend-dashboard-header,
body.cams-auth-body .tutor-dashboard .tutor-dashboard-left-menu,
body.cams-auth-body #tutor-dashboard-footer-mobile {
    display: none !important;
}

/* Remove dashboard wrapper padding */
body.cams-auth-body .tutor-dashboard.tutor-frontend-dashboard {
    padding: 0 !important;
    margin: 0 !important;
}

body.cams-auth-body .tutor-dashboard .tutor-container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.cams-auth-body .tutor-dashboard .tutor-frontend-dashboard-maincontent {
    display: block !important;
}

body.cams-auth-body .tutor-dashboard .tutor-frontend-dashboard-maincontent>.tutor-col-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

body.cams-auth-body .tutor-dashboard .tutor-dashboard-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove site-content padding */
body.cams-auth-body #content.site-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Prevent extra scrolling */
body.cams-auth-body {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Block themes */
body.cams-auth-body .wp-site-blocks>header,
body.cams-auth-body .wp-site-blocks>footer {
    display: none !important;
}




/* ================================================
   2. TUTOR WRAPPER OVERRIDES
   ================================================ */

body .tutor-page-wrap,
body .tutor-template-segment,
body .tutor-login-wrap {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body:not(.logged-in) .site-content>.tutor-wrap.tutor-page-wrap {
    background: transparent;
    max-width: none !important;
    padding: 0 !important;
}

#tutor-registration-wrap {
    background: transparent !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}


body.cams-auth-body .tutor-border-top-light {
    border-top: none !important;
}

/* Remove 24px padding-top from Social Login container */
#tutor-pro-social-authentication.tutor-pt-24 {
    padding-top: 10px!important;
}


/* ================================================
   3. AUTH PAGE BASE LAYOUT
   ================================================ */


.cams-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    width: 100% !important;
    max-width: none !important;
}

.cams-auth-page,
.cams-auth-page *,
.cams-auth-page *::before,
.cams-auth-page *::after {
    box-sizing: border-box !important;
}

/* ================================================
   4. AUTH CARD
   ================================================ */

.cams-auth-card {
    max-width: 1200px;
    width: 100%;
    min-height: 800px;
    background: #ffffff;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 50% 50%;
    position: relative;
    overflow: hidden;
    animation: camsCardFadeIn 0.6s ease-out;
    margin-left: auto;
    margin-right: auto;
}

/* Registration layout swap (info left, image right) */
.cams-auth-page-registration .cams-auth-card {
    grid-template-columns: 50% 50%;
    min-height: min(800px, 98vh); /* Never taller than viewport */
}

.cams-auth-page-registration .cams-auth-image-col {
    order: 2;
}

.cams-auth-page-registration .cams-auth-form-col {
    order: 1;
}

/* ================================================
   4b. REGISTRATION PAGE — NO-SCROLL COMPACT LAYOUT
   Logo + fields + button without any vertical scroll
   ================================================ */

/* Tighten outer page padding so card doesn't get cut */
.cams-auth-page.cams-auth-page-registration {
    padding: 12px 24px;
    align-items: center;
}

/* Form column — tighter vertical padding */
.cams-auth-page-registration .cams-auth-form-col {
    padding: 0px;
    justify-content: center;
}

/* Logo: smaller on registration page */
.cams-auth-page-registration .cams-auth-logo {
    margin-bottom: 4px;
}

.cams-auth-page-registration .cams-auth-logo img,
.cams-auth-page-registration .cams-auth-logo .cams-auth-logo-img {
    max-height: 100px; /* Compact logo */
}

/* Title: tighter */
.cams-auth-page-registration .cams-auth-title {
    font-size: 32px;
    margin: 0 0 4px 0;
}

/* Form section: no extra flex spacing */
.cams-auth-page-registration .cams-auth-form-section {
    justify-content: flex-start;
}

/* Form groups: very tight vertical gap */
.cams-auth-page-registration .cams-form-group {
    margin-bottom: 7px;
}

.cams-auth-page-registration .cams-form-row .cams-form-group {
    margin-bottom: 7px;
}

/* Labels: tight */
.cams-auth-page-registration .cams-form-group label {
    font-size: 11px;
    margin-bottom: 2px;
    display: block;
}

/* Inputs: shorter height */
.cams-auth-page-registration .cams-input-wrapper input,
.cams-auth-page-registration .cams-input-wrapper select,
.cams-auth-page-registration #tutor-registration-form input[type="text"],
.cams-auth-page-registration #tutor-registration-form input[type="email"],
.cams-auth-page-registration #tutor-registration-form input[type="password"],
.cams-auth-page-registration #tutor-registration-form input[type="tel"] {
    padding: 7px 14px;
    font-size: 13px;
}

/* Phone wrapper compact */
.cams-auth-page-registration .cams-phone-wrapper input[type="tel"] {
    padding: 7px 12px !important;
}

.cams-auth-page-registration .cams-country-select {
    padding: 7px 26px 7px 8px;
    font-size: 12px;
}

/* Password toggle — adjust for shorter input */
.cams-auth-page-registration .cams-password-wrapper input {
    padding-right: 46px !important;
}

/* Agreement checkbox area */
.cams-auth-page-registration .cams-auth-agreement {
    margin: 5px 0 2px;
}

.cams-auth-page-registration .cams-agreement-label {
    font-size: 11.5px;
}

/* Submit button: slightly smaller */
.cams-auth-page-registration .cams-auth-btn {
    padding: 9px 24px;
    font-size: 14px;
    margin-top: 6px;
}

/* Footer: tighter */
.cams-auth-page-registration .cams-auth-footer-left {
    margin-top: 8px;
}

/* ----- Responsive tablet ----- */
@media (max-width: 1024px) {
    .cams-auth-page-registration .cams-auth-form-col {
        padding: 12px 24px 10px;
    }
}

/* ----- Responsive mobile ----- */
@media (max-width: 768px) {
    .cams-auth-page.cams-auth-page-registration {
        padding: 10px 12px;
        overflow-y: auto; /* allow scroll on mobile if unavoidable */
    }

    .cams-auth-page-registration .cams-auth-form-col {
        padding: 16px 18px 14px;
    }

    .cams-auth-page-registration .cams-auth-title {
        font-size: 22px;
    }

    .cams-auth-page-registration .cams-auth-logo img,
    .cams-auth-page-registration .cams-auth-logo .cams-auth-logo-img {
        max-height: 80px;
    }

    .cams-auth-page-registration .cams-auth-close {
        background: #033E8A!important;
    }

    .tutor-login-form-wrapper,
    #tutor-registration-form {
        padding: 0px !important;
    }
}

/* ----- Very small mobile ----- */
@media (max-width: 480px) {
    .cams-auth-page-registration .cams-auth-title {
        font-size: 18px;
    }

    .cams-auth-page-registration .cams-form-group {
        margin-bottom: 5px;
    }

    .cams-auth-page-registration .cams-auth-logo img,
    .cams-auth-page-registration .cams-auth-logo .cams-auth-logo-img {
        max-height: 80px;
    }
}



@keyframes camsCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ================================================
   5. CLOSE BUTTON
   ================================================ */

.cams-auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(3, 62, 138, 0.25);
    background: rgba(3, 62, 138, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #033E8A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cams-auth-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.cams-auth-close:active {
    transform: rotate(90deg) scale(0.92);
}

/* Registration Page specific: Make close button white */
.cams-auth-page-registration .cams-auth-close {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.cams-auth-page-registration .cams-auth-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}


/* ================================================
   6. FORM COLUMN
   ================================================ */

.cams-auth-form-col {
    padding: 24px 38px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    order: 2;
}


/* ================================================
   7. LOGO
   ================================================ */

.cams-auth-logo {
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cams-auth-logo img,
.cams-auth-logo .cams-auth-logo-img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

.cams-auth-logo img.cams-auth-logo-img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(98%) saturate(1917%) hue-rotate(203deg) brightness(92%) contrast(106%);
}

.cams-auth-site-name {
    color: #033E8A;
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}


/* ================================================
   8. TITLES & TAGLINE
   ================================================ */

.cams-auth-title {
    text-align: center;
    font-size: 50px;
    font-weight: 800;
    color: #033E8A;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cams-auth-subtitle {
    text-align: center;
    color: rgba(3, 62, 138, 0.8);
    font-size: 16px;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.cams-auth-tagline {
    text-align: center;
    color: #033E8A;
    font-size: 13.5px;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-weight: 400;
}

.cams-auth-section-label {
    font-size: 17px;
    font-weight: 700;
    color: #033E8A;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}


/* ================================================
   9. FORM SECTION & GROUPS
   ================================================ */

.cams-auth-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cams-auth-form,
#tutor-login-form,
#tutor-registration-form {
    width: 100% !important;
    max-width: 100% !important;
    /* overflow must be visible so absolute-positioned eye buttons inside
       password fields are never clipped */
    overflow: visible;
}


.cams-form-group {
    margin-bottom: 12px;
    width: 100%;
    /* overflow must be visible — ancestor overflow:hidden clips the
       absolute-positioned password-toggle button inside this element */
    overflow: visible;
}

.cams-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #033E8A;
    letter-spacing: 0.01em;
}

/* Form Row (side-by-side fields) */
.cams-form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.cams-form-row .cams-form-group {
    flex: 1;
    margin-bottom: 6px;
}


/* ================================================
   10. INPUT FIELDS
   ================================================ */

.cams-input-wrapper {
    position: relative;
    width: 100%;
    /* overflow must be visible so the absolute-positioned toggle button
       is NOT clipped — removing overflow:hidden fixes the overlay bug */
    overflow: visible;
}

.cams-input-wrapper input,
.cams-input-wrapper select,
.cams-auth-form input[type="text"],
.cams-auth-form input[type="email"],
.cams-auth-form input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #033E8A;
    border-radius: 10px;
    color: #033E8A;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}

.cams-input-wrapper select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033E8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px !important;
    cursor: pointer;
}

.cams-input-wrapper input:hover,
.cams-input-wrapper select:hover,
.cams-auth-form input:hover {
    border-color: #033E8A;
    background-color: #f8fafc;
}

.cams-input-wrapper input:focus,
.cams-input-wrapper select:focus,
.cams-auth-form input:focus {
    border-color: #033E8A;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(3, 62, 138, 0.12);
}

/* Placeholder colors */
.cams-auth-page input::placeholder {
    color: #033E8A !important;
    opacity: 0.6 !important;
}

.cams-auth-page input::-webkit-input-placeholder {
    color: #033E8A !important;
    opacity: 0.6 !important;
}

.cams-auth-page input::-moz-placeholder {
    color: #033E8A !important;
    opacity: 0.6 !important;
}

.cams-auth-page input:-ms-input-placeholder {
    color: #033E8A !important;
}

.cams-auth-page input::-ms-input-placeholder {
    color: #033E8A !important;
}


/* ================================================
   10b. PHONE + COUNTRY CODE COMBO FIELD
   ================================================ */

/* Outer row: dropdown left, input right */
.cams-phone-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border: 1px solid #033E8A;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.cams-phone-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(3, 62, 138, 0.12);
}

/* Country code select wrapper */
.cams-country-select-wrap {
    flex-shrink: 0;
    position: relative;
    border-right: 1px solid rgba(3, 62, 138, 0.25);
    background: rgba(3, 62, 138, 0.04);
    display: flex;
    align-items: center;
    min-width: 80px;   /* just enough for +880 ▾ */
    max-width: 100px;
    cursor: pointer;
}

/* ---------- Visible display: shows ONLY the code e.g. "+880" ---------- */
.cams-code-display {
    display: flex;
    align-items: center;
    padding: 0px 20px 0px 10px; /* right gap for chevron */
    font-size: 13px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: #033E8A;
    white-space: nowrap;
    pointer-events: none; /* clicks go through to the select */
    user-select: none;
    width: 100%;
}

/* Chevron arrow over the visible display */
.cams-country-select-wrap::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #033E8A;
    pointer-events: none;
    z-index: 2;
}

/* ---------- Native select: invisible click-catcher on top ---------- */
.cams-country-select {
    position: absolute;
    inset: 0;               /* top:0 right:0 bottom:0 left:0 */
    width: 100%;
    height: 100%;
    opacity: 0;             /* invisible — list still opens on click */
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 3;             /* sits above the display span */
    -webkit-appearance: menulist-button; /* ensures native dropdown opens */
    appearance: menulist-button;
}

.cams-country-select:focus {
    outline: none;
}

/* Phone number input — remove double border since parent wrapper handles it */
.cams-phone-wrapper input[type="tel"] {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-size: 14px;
    color: #033E8A;
    background: transparent;
    width: 100% !important;
    min-width: 0;
}

.cams-phone-wrapper input[type="tel"]:focus {
    border: none !important;
    box-shadow: none !important;
    background: #f8fafc;
}

/* Responsive: stack on very small screens */
@media (max-width: 360px) {
    .cams-country-select {
        min-width: 110px;
        font-size: 12px;
        padding: 8px 22px 8px 8px;
    }
}



.cams-password-wrapper input {
    /* Extra right-padding so typed text never slides under the eye button */
    padding-right: 52px !important;
}

.cams-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    /* always sits on top of the input text */
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: rgb(3 62 138) !important;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    line-height: 0;
    pointer-events: auto;
    /* ensure clicks always register */
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.cams-password-toggle:hover {
    color: rgba(3, 62, 138, 0.85);
}

.cams-password-toggle:focus {
    outline: none;
    color: #033E8A;
}


/* ================================================
   12. SUBMIT BUTTON
   ================================================ */

.cams-auth-btn,
.cams-auth-form .cams-auth-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 28px;
    background: #033E8A;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.2;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cams-auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.cams-auth-btn:hover::before {
    left: 100%;
}

.cams-auth-btn:hover {
    background: #022c63;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(3, 62, 138, 0.35);
}

.cams-auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.cams-auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}


/* ================================================
   13. REMEMBER ME & FORGOT PASSWORD
   ================================================ */

.cams-auth-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 4px;
}

.cams-auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #033E8A;
    cursor: pointer;
}

.cams-auth-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #033E8A;
    cursor: pointer;
}

.cams-auth-forgot {
    font-size: 12px;
    color: #033E8A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cams-auth-forgot:hover {
    color: #022c63;
}


/* ================================================
   14. AUTH FOOTER
   ================================================ */

.cams-auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    width: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.cams-auth-footer-left {
    color: #033E8A;
    font-weight: 400;
    width: 100%;
    text-align: center;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cams-auth-footer-left a {
    color: #033E8A;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-left: 3px;
}

.cams-auth-footer-left a:hover {
    color: #022c63;
}

.cams-auth-footer-right a {
    color: #033E8A;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.cams-auth-footer-right a:hover {
    color: #8B9DC3;
}


/* ================================================
   15. IMAGE COLUMN & SIDEBAR SLIDER
   ================================================ */

.cams-auth-image-col {
    position: relative;
    order: 1;
}

.cams-auth-image-wrapper {
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* All slide images stack via absolute positioning */
.cams-auth-sidebar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* First image fallback (only 1 image, no slider) */
.cams-auth-sidebar-img:only-of-type {
    position: relative;
    opacity: 1;
}

/* Active slide visible */
.cams-auth-sidebar-img.cams-slide-active {
    opacity: 1;
    z-index: 2;
}

.cams-auth-card:hover .cams-auth-sidebar-img {
    transform: none;
}

/* Slider Navigation Dots */
.cams-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
}

.cams-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.cams-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
}

.cams-slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

/* When badge is present, shift dots above the badge */
.cams-certified-badge~.cams-slider-dots {
    bottom: 85px;
}


/* ================================================
   15b. PRIVACY POLICY AGREEMENT CHECKBOX
   ================================================ */

.cams-auth-agreement {
    margin: 10px 0 2px;
    width: 100%;
}

.cams-agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12.5px;
    color: rgba(3, 62, 138, 0.85);
    line-height: 1.55;
    user-select: none;
    position: relative;
}

/* Hide the native checkbox */
.cams-agreement-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkmark box */
.cams-agreement-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1px;
    flex-shrink: 0;
}

.cams-agreement-checkmark::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

/* Checked state */
.cams-agreement-label input[type="checkbox"]:checked~.cams-agreement-checkmark {
    background: #033E8A;
    border-color: #033E8A;
    box-shadow: 0 0 10px rgba(3, 62, 138, 0.4);
}

.cams-agreement-label input[type="checkbox"]:checked~.cams-agreement-checkmark::after {
    display: block;
}

/* Focus state */
.cams-agreement-label input[type="checkbox"]:focus-visible~.cams-agreement-checkmark {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Hover on label */
.cams-agreement-label:hover .cams-agreement-checkmark {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.cams-agreement-text {
    flex: 1;
}

.cams-agreement-text a {
    color: #033E8A;
    text-decoration: underline;
    text-decoration-color: rgba(3, 62, 138, 0.35);
    text-underline-offset: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cams-agreement-text a:hover {
    color: #93c5fd;
    text-decoration-color: rgba(147, 197, 253, 0.5);
}


/* ================================================
   16. CERTIFIED BADGE
   ================================================ */

.cams-certified-badge {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    padding: 10px 26px 10px 14px;
    border-radius: 14px;
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}

.cams-certified-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cams-certified-text {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ================================================
   17. STATUS MESSAGES & ERRORS
   ================================================ */

.cams-auth-form .signup-status {
    font-size: 13px;
    margin: 0 0 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
}

.cams-status-error,
.cams-auth-form .signup-status.cams-status-error {
    display: block;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cams-status-success,
.cams-auth-form .signup-status.cams-status-success {
    display: block;
    color: #059669;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.cams-auth-form .signup-status:empty {
    display: none;
    margin: 0;
}

.tutor-login-error {
    color: #FCA5A5 !important;
    font-size: 13px;
}

.tutor-alert.tutor-warning {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #FCA5A5 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

.cams-auth-form .tutor-alert {
    border-radius: 10px;
    font-size: 13px;
}


/* ================================================
   18. TERMS SECTION
   ================================================ */

.cams-auth-terms {
    font-size: 12px;
    color: #033E8A;
    line-height: 1.6;
    margin: 4px 0 4px;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cams-auth-terms a {
    color: #033E8A;
    text-decoration: underline;
    text-decoration-color: rgba(3, 62, 138, 0.3);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.cams-auth-terms a:hover {
    color: #f1f1f1;
    text-decoration-color: rgba(241, 241, 241, 0.4);
}


/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {
    .cams-auth-card {
        max-width: 800px;
        grid-template-columns: 52% 48%;
    }

    .cams-auth-page-registration .cams-auth-card {
        grid-template-columns: 50% 50%;
    }

    .cams-auth-form-col {
        padding: 32px 28px 28px;
    }

    .cams-auth-page.cams-auth-page-registration {
        padding: 30px 20px;
    }

    .cams-auth-remember-row {
        margin: 10px 0 2px;
    }
}

/* ---------- Mobile (max 768px) ---------- */
@media (max-width: 768px) {
    body.cams-auth-body {
        overflow: auto !important;
        height: auto !important;
    }

    .cams-auth-page {
        padding: 16px;
        align-items: flex-start;
        min-height: 100vh;
    }

    .cams-auth-page.cams-auth-page-registration {
        padding: 16px 12px;
        align-items: flex-start;
    }

    .cams-auth-card {
        grid-template-columns: 1fr !important;
        max-width: 480px;
        margin-top: 10px;
    }

    .cams-auth-image-col {
        display: none !important;
    }

    /* Start: Registration and Login image on bottom for mobile */
    .cams-auth-page-registration .cams-auth-image-col,
    .cams-auth-page-login .cams-auth-image-col {
        display: block !important;
        order: 2;
        width: 100%;
        height: 390px;

        margin-top: 10px;
    }

    .cams-auth-page-registration .cams-auth-form-col,
    .cams-auth-page-login .cams-auth-form-col {
        order: 1;
    }

    .cams-auth-page-registration .cams-auth-image-wrapper,
    .cams-auth-page-login .cams-auth-image-wrapper {
        height: 100%;

        background: transparent;
    }

    .cams-auth-page-registration .cams-auth-sidebar-img,
    .cams-auth-page-login .cams-auth-sidebar-img {
        object-fit: contain !important;
    }
    /* End: Registration and Login image on bottom for mobile */

    .cams-auth-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .cams-auth-form-col {
        padding: 28px 20px 24px;
    }

    .cams-auth-title {
        font-size: 24px;
    }

    .cams-auth-tagline {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .cams-auth-section-label {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .cams-auth-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .cams-auth-footer-left,
    .cams-auth-footer-right {
        width: 100%;
        text-align: center;
    }

    .cams-auth-btn {
        padding: 14px 24px;
        font-size: 15px;
        margin-top: 10px;
    }

    .cams-auth-remember-row {
        gap: 8px;
        align-items: flex-start;
        margin: 10px 0 4px;
    }

    .cams-auth-remember {
        font-size: 11px;
    }

    .cams-auth-forgot {
        font-size: 11px;
    }

    /* Tutor wrapper mobile fix */
    body .tutor-page-wrap,
    body .tutor-template-segment,
    body .tutor-login-wrap {
        padding: 0 !important;
        margin: 0 !important;
    }

    #tutor-registration-wrap {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ---------- Small Mobile (max 480px) ---------- */
@media (max-width: 480px) {
    .cams-auth-page {
        padding: 10px;
    }

    .cams-auth-page.cams-auth-page-registration {
        padding: 10px 8px;
    }

    .cams-auth-card {
        border-radius: 16px;
        margin-top: 6px;
    }

    .cams-auth-form-col {
        padding: 22px 16px 20px;
    }

    .cams-auth-logo img,
    .cams-auth-logo .cams-auth-logo-img {
        max-height: 80px;
    }

    .cams-auth-title {
        font-size: 20px;
    }

    .cams-auth-tagline {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .cams-auth-section-label {
        font-size: 13px;
    }

    .cams-form-row {
        flex-direction: column;
        gap: 0;
    }

    .cams-input-wrapper input,
    .cams-auth-form input[type="text"],
    .cams-auth-form input[type="email"],
    .cams-auth-form input[type="password"] {
        padding: 11px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    .cams-form-group {
        margin-bottom: 12px;
    }

    .cams-form-group label {
        font-size: 11px;
    }

    .cams-auth-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .cams-auth-footer {
        font-size: 11px;
    }

    .cams-auth-terms {
        font-size: 10px;
    }

    .cams-auth-remember {
        font-size: 10px;
    }

    .cams-auth-forgot {
        font-size: 10px;
    }
}

/* ---------- Very Small Mobile (max 360px) ---------- */
@media (max-width: 360px) {
    .cams-auth-page.cams-auth-page-registration {
        padding: 6px 4px;
    }

    .cams-auth-form-col {
        padding: 18px 12px 16px;
    }

    .cams-auth-logo img,
    .cams-auth-logo .cams-auth-logo-img {
        max-height: 80px;
    }

    .cams-auth-title {
        font-size: 18px;
    }
}

/* ================================================
   19. FORGOT PASSWORD PAGE
   ================================================ */

.cams-auth-page-forgot {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    height: 100vh !important; /* Force full screen height */
    padding: 0 !important;
    margin: 0 !important;
}

.cams-auth-page-forgot .cams-auth-card {
    grid-template-columns: 50% 50%; /* Image Left, Form Right */
    align-items: center;
    margin: auto !important; /* Center card inside flex container */
    min-height: auto !important; /* Override the 800px min-height */
    height: auto !important; /* Let content dictate height */
}

.cams-forgot-image-col {
    order: 1; /* Force image on left */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    background: transparent;
}

.cams-forgot-image-col img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cams-forgot-form-col {
    order: 2; /* Force form on right */
    justify-content: center;
    padding: 40px 60px;
}

.cams-forgot-header {
    padding: 15px;
}

.cams-forgot-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cams-forgot-header h2 span {
    display: block;
}

/* Specific solid blue input for forgot password */
.cams-forgot-input {
    background-color: #033E8A !important;
    border-color: #033E8A !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 18px 20px !important;
    font-size: 15px !important;
}

.cams-forgot-input::placeholder,
.cams-forgot-input::-webkit-input-placeholder,
.cams-forgot-input::-moz-placeholder,
.cams-forgot-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
}

.cams-forgot-btn {
    border-radius: 8px !important;
    padding: 16px 20px !important;
    background-color: #033E8A !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 15px !important;
    margin-top: 5px !important;
}

.cams-forgot-footer {
    text-align: center;
    margin-top: 25px;
}

.cams-forgot-back-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cams-forgot-back-link:hover {
    color: #033E8A;
}

/* Tablet / Mobile Overrides for Forgot Password */
@media (max-width: 1024px) {
    .cams-auth-page-forgot .cams-auth-card {
        grid-template-columns: 1fr;
    }
    .cams-forgot-image-col {
        display: none !important; /* hide image on tablet/mobile like login page */
    }
    .cams-forgot-form-col {
        padding: 40px 30px;
    }
}

/* Mobile: No Scroll + Full Center */
@media (max-width: 768px) {
    .cams-auth-page-forgot {
        min-height: 100vh !important;
        height: 100vh !important;
        overflow: hidden !important;         /* prevent scroll */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .cams-auth-page-forgot .cams-auth-card {
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        grid-template-columns: 1fr !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .cams-forgot-form-col {
        padding: 30px 24px !important;
        text-align: center !important;
    }

    .cams-forgot-header {
        padding: 10px !important;
        text-align: center !important;
    }

    .cams-forgot-header h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .cams-forgot-header p {
        font-size: 13px !important;
    }

    .cams-form-group {
        text-align: left !important;
    }

    .cams-auth-btn,
    .cams-forgot-btn {
        width: 100% !important;
        text-align: center !important;
    }

    .cams-auth-footer,
    .cams-forgot-footer {
        text-align: center !important;
        justify-content: center !important;
    }
}

