/* ============================================================
 * New Remini auth design (Login + Register) — REMINI SCHOOL ONLY.
 * Everything is scoped under .reminiAuth (added to #Login / #SignUp
 * only when schoolName === 'remini'), so other schools keep the
 * legacy .school styling untouched.
 * Source: html-output/Login/{login,register}.html
 * ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* The page fills the screen and centres the card on a flat grey bg. */
#Login.reminiAuth,
#SignUp.reminiAuth {
    background: #f6f7fa !important;
}
.reminiAuth,
.reminiAuth * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}
.reminiAuth .reminiAuthScroll,
.reminiAuth .mainContent.reminiAuthScroll {
    min-height: 100vh;
    width: 100%;
    background: #f6f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 40px 16px;
    /* Cancel the legacy .mainContent { margin-top: 50px } on the registration page. */
    margin-top: 0 !important;
}

/* Decorative background polygons */
.reminiAuth .bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}
.reminiAuth .bg-shape-left { bottom: 0; left: -60px; width: 340px; height: 260px; }
.reminiAuth .bg-shape-right { bottom: 100px; right: -40px; width: 300px; height: 320px; }

/* Card */
.reminiAuth .card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    width: 440px;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* Header */
.reminiAuth .card-header {
    padding: 32px 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.reminiAuth .logo { height: 24px; width: auto; max-width: 140px; object-fit: contain; }
.reminiAuth .school-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.reminiAuth .school-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 16px; }
.reminiAuth .school-name {
    font-size: 18px; font-weight: 500; color: #20252d;
    letter-spacing: -0.27px; line-height: 24px; text-align: center;
}
.reminiAuth .header-text {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center; width: 100%;
}
.reminiAuth .header-title {
    font-size: 24px; font-weight: 500; color: #20252d;
    letter-spacing: -0.36px; line-height: 32px; margin: 0;
}
.reminiAuth .header-subtitle {
    font-size: 14px; font-weight: 400; color: #525966; line-height: 20px; margin: 0;
}

/* Body */
.reminiAuth .card-body {
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form */
.reminiAuth .form { display: flex; flex-direction: column; gap: 12px; }
.reminiAuth .field { display: flex; flex-direction: column; gap: 8px; }
.reminiAuth .field-row { display: flex; gap: 12px; }
.reminiAuth .field-row .field { flex: 1; min-width: 0; }
.reminiAuth .field-label { font-size: 14px; font-weight: 500; color: #20252d; line-height: 20px; }
.reminiAuth .field-hint { font-size: 12px; font-weight: 400; color: #525666; line-height: 16px; margin-top: 4px; }

.reminiAuth .input-wrap { position: relative; width: 100%; }
.reminiAuth .input-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #525966; display: flex; align-items: center; pointer-events: none;
}
.reminiAuth .input-right-icon {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: #525966; display: flex; align-items: center; cursor: pointer;
}

/* Inputs — override jQuery Mobile field styling within the auth card. */
.reminiAuth input[type="text"],
.reminiAuth input[type="email"],
.reminiAuth input[type="password"],
.reminiAuth input[type="tel"] {
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 10px 40px 10px 40px !important;
    background: #fff !important;
    border: 1px solid #e2e4e9 !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #20252d !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(228, 229, 231, 0.24) !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
}
.reminiAuth input::placeholder { color: #b0b5bf; font-weight: 400; }
.reminiAuth input:focus {
    border-color: #2563d7 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 215, 0.12) !important;
}

/* Forgot link — reset the legacy .forgotPass (absolute, bottom-pinned, grey link). */
.reminiAuth .forgotPass {
    position: static !important;
    bottom: auto !important;
    width: auto !important;
    text-align: left !important;
    display: block;
    margin: 0;
}
.reminiAuth .forgot-link,
.reminiAuth .forgotPass a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #2563d7 !important;
    text-decoration: underline !important;
    text-shadow: none !important;
    cursor: pointer;
    line-height: 20px;
}
.reminiAuth .forgot-link:hover { opacity: 0.8; }

/* Primary button — beats jQuery Mobile button styling. */
.reminiAuth .btn-primary {
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    background: #2563d7 !important;
    border: none !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-shadow: none !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(55, 93, 251, 0.08) !important;
    transition: background 0.15s, box-shadow 0.15s;
}
.reminiAuth .btn-primary:hover { background: #1d50b5 !important; box-shadow: 0 2px 8px rgba(37, 99, 215, 0.25) !important; }
.reminiAuth .btn-primary:active { background: #1a47a0 !important; }

/* Footer links / text */
.reminiAuth .footer-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; line-height: 20px;
}
.reminiAuth .footer-link .muted { color: #525666; font-weight: 400; }
.reminiAuth .footer-link a { color: #2563d7; font-weight: 500; text-decoration: underline; cursor: pointer; }
.reminiAuth .footer-link a:hover { opacity: 0.8; }

.reminiAuth .trusted-text,
.reminiAuth .terms-text {
    text-align: center; font-size: 14px; font-weight: 400; color: #525666; line-height: 20px;
}
.reminiAuth .terms-text a { color: #2563d7; font-weight: 500; text-decoration: none; }
.reminiAuth .terms-text a:hover { text-decoration: underline; }

/* Page footer (register) */
.reminiAuth .page-footer {
    margin-top: 24px; display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding-bottom: 8px; position: relative; z-index: 1;
}
.reminiAuth .footer-logo { height: 20px; object-fit: contain; }
.reminiAuth .footer-copy { font-size: 14px; font-weight: 400; color: #525666; line-height: 20px; }

/* Profile photo control (kept per the chosen flow). The legacy flow injects an
   <img class="intro_centerProfileImage"> + a <div><p>…</p></div> caption into
   .centerProfileImage, and Remini.css makes that a 360px scaled, negatively-margined
   element. Reset all of that into a clean 80px avatar with a camera placeholder. */
.reminiAuth .nd-photo-field { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.reminiAuth .centerProfileImage {
    margin: 0 !important;
    width: 80px !important;
    height: 80px !important;
    transform: none !important;
    position: relative !important;
    border: 1px solid #e2e4e9 !important;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* camera placeholder shown until a real photo is set */
    background: #eef1f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none'%3E%3Cpath d='M4 8h3l1.5-2h9L19 8h3a1 1 0 011 1v10a1 1 0 01-1 1H4a1 1 0 01-1-1V9a1 1 0 011-1z' stroke='%23868c98' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='13' cy='13.5' r='3.5' stroke='%23868c98' stroke-width='1.5'/%3E%3C/svg%3E") center / 26px no-repeat;
}
/* Base <img> fills the circle and is sized (not 0×0) so the cropper measures it
   correctly; empty (no src) it renders transparent and the camera icon shows through. */
.reminiAuth .centerProfileImage img {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    margin: 0 !important;
}
.reminiAuth .centerProfileImage img[src*="profileImageArrow"] { display: none !important; }
.reminiAuth .centerProfileImage > div { display: none !important; }
.reminiAuth .nd-photo-hint { font-size: 12px; color: #525666; }

/* Inline validation error (replaces the legacy overlay popup on .reminiAuth). */
.reminiAuth .nd-field-error {
    margin: 4px 0 0 !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #d92d20;
    text-shadow: none;
    text-align: left;
}

/* Hide legacy chrome we don't want in the new card. The crop page (#CropImage)
   keeps its header — that's where the OK / back buttons live — so exclude it. */
#Login.reminiAuth [data-role="header"],
#SignUp.reminiAuth [data-role="header"],
.reminiAuth #facebookLogin { display: none !important; }

/* Captcha containers sit cleanly inside the card when triggered. */
.reminiAuth #login_recaptcha,
.reminiAuth #signup_recaptcha { margin-top: 8px; }
.reminiAuth #recaptcha { display: flex; justify-content: center; }

/* ------------------------------------------------------------
 * Image-edit (crop) screen — REMINI ONLY (#CropImage.reminiAuth).
 * Jcrop wraps the image in a left-aligned block (.jcrop-holder)
 * sized to the image, leaving a bar of bare page background on the
 * right. Centre the holder both axes and give the page a neutral
 * dark backdrop so any letterboxing reads as intentional.
 * ------------------------------------------------------------ */
#CropImage.reminiAuth { background: #1c1f24 !important; }
#CropImage.reminiAuth .mainContent {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1c1f24;
}
#CropImage.reminiAuth .jcrop-holder {
    margin: 0 auto !important;
}
/* OK button in the crop header — match the new-design primary button (blue pill). */
#CropImage.reminiAuth .rightHeaderButton {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    top: 9px !important;
    display: flex;
    align-items: center;
}
#CropImage.reminiAuth .rightHeaderButton a {
    display: block;
    text-decoration: none !important;
}
#CropImage.reminiAuth .rightHeaderButton a > div {
    background: #2563d7 !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(55, 93, 251, 0.18) !important;
    padding: 0 18px !important;
    margin: 0 !important;
    width: auto !important;
    height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
#CropImage.reminiAuth .rightHeaderButton a > div:hover { background: #1d50b5 !important; }
#CropImage.reminiAuth .rightHeaderButton a > div:active { background: #1a47a0 !important; }
#CropImage.reminiAuth .rightHeaderButton a > div p {
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    text-shadow: none !important;
    letter-spacing: 0.2px;
}

@media (max-width: 480px) {
    .reminiAuth .card { width: 100%; border-radius: 16px; }
    .reminiAuth .card-header { padding: 24px 20px 16px; }
    .reminiAuth .card-body { padding: 20px 20px 24px; }
}
