/* EduPath-AI sign-in — Gen-Z sticker card.
   Every text/background pair is set explicitly (light AND dark) so letters are always readable,
   both on the standalone page and inside the landing-page pop-up (body.is-embed). */
html {
    --lg-ink: #14232c; --lg-paper: #fffaf3; --lg-field: #ffffff; --lg-text: #14232c; --lg-muted: #4a5b66;
    --lg-line: #14232c; --lg-shadow: #14232c; --lg-link: #c01a63; --lg-chip: #f3ecff;
    --lg-pop: #FF4D8D; --lg-lime: #C6F135; --lg-sun: #FFD23F; --lg-sky: #5EE1FF; --lg-violet: #7C5CFF;
    --lg-bounce: cubic-bezier(.3, 1.5, .5, 1);
}
html[data-theme="dark"] {
    --lg-paper: #1a1640; --lg-field: #2a2563; --lg-text: #f4f0ff; --lg-muted: #c3bce3;
    --lg-line: #b9a8ff; --lg-shadow: #000; --lg-link: #ff9cc7; --lg-chip: #2a2563;
}

/* ---------- backdrop (standalone page keeps the 3 videos) ---------- */
html body .login-bg { background: #1b1240; }
html body .login-bg-veil {
    background: linear-gradient(150deg, rgba(25, 8, 70, .86) 0%, rgba(80, 25, 120, .62) 50%, rgba(10, 50, 90, .8) 100%),
        radial-gradient(ellipse at 80% 10%, rgba(255, 77, 141, .35), transparent 55%);
}
html body .back-home {
    display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: var(--lg-ink) !important; font-weight: 900; text-decoration: none;
    border: 2.5px solid var(--lg-ink); border-radius: 999px; padding: .3rem .95rem; box-shadow: 3px 3px 0 var(--lg-ink); margin-bottom: 16px;
    transition: transform .15s var(--lg-bounce);
}
html body .back-home:hover { transform: translateX(-4px) rotate(-1deg); color: var(--lg-ink) !important; }

/* ---------- the card ---------- */
html body .login-card {
    background: var(--lg-paper) !important; color: var(--lg-text) !important;
    border: 3px solid var(--lg-line) !important; border-radius: 28px !important;
    box-shadow: 9px 9px 0 var(--lg-shadow) !important; backdrop-filter: none !important; overflow: hidden;
}
html body.is-embed .login-card { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html body .login-card .card-body { background: transparent !important; color: var(--lg-text) !important; backdrop-filter: none !important; }

/* header sticker banner */
html body .login-header {
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .28) 1.2px, transparent 1.5px) 0 0 / 16px 16px,
        linear-gradient(135deg, #FF4D8D 0%, #B24DFF 55%, #5B5BFF 100%) !important;
    color: #fff !important; border-bottom: 3px solid var(--lg-line); border-radius: 0 !important; position: relative; overflow: hidden;
}
html body .login-card .login-header { display: grid !important; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; text-align: left !important; padding: 22px 64px 20px 22px !important; }
html body .login-card .login-header > i {
    grid-row: 1 / 3; width: 60px; height: 60px; display: grid !important; place-items: center; font-size: 1.7rem !important; color: var(--lg-ink) !important;
    background: var(--lg-sun); border: 3px solid var(--lg-ink); border-radius: 18px; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--lg-ink); filter: none !important; margin: 0 !important;
}
html body .login-card .login-header h3 { margin: 0 !important; align-self: end; font-size: 1.7rem !important; line-height: 1.05; }
html body .login-card .login-header p { margin: .15rem 0 0 !important; align-self: start; font-size: .88rem !important; max-width: none !important; }
html body .login-header h3 { color: #fff !important; font-weight: 800; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
html body .login-header h3 .brand-ai { color: var(--lg-lime) !important; }
html body .login-header p { color: #fff !important; opacity: .95 !important; font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }

/* ---------- tabs ---------- */
html body .login-card .nav-pills { background: var(--lg-chip) !important; border: 3px solid var(--lg-line); border-radius: 999px; padding: .3rem; gap: .3rem; box-shadow: 3px 3px 0 var(--lg-shadow); }
html body .login-card .nav-pills .nav-link {
    border: 2.5px solid transparent; border-radius: 999px !important; font-weight: 900; color: var(--lg-text) !important; background: transparent !important;
    transition: transform .15s var(--lg-bounce), background .15s;
}
html body .login-card .nav-pills .nav-link:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--lg-sun) 50%, transparent) !important; }
html body .login-card .nav-pills .nav-link.active { background: var(--lg-lime) !important; color: var(--lg-ink) !important; border-color: var(--lg-ink); box-shadow: 0 3px 0 var(--lg-ink); }

/* ---------- text + fields ---------- */
html body .login-card .form-label, html body .login-card label { color: var(--lg-text) !important; font-weight: 800; }
html body .login-card .form-label i { color: var(--lg-pop); }
html body .login-card .form-control {
    background: var(--lg-field) !important; color: var(--lg-text) !important; border: 3px solid var(--lg-line) !important; border-radius: 14px !important;
    font-weight: 600; box-shadow: 0 3px 0 var(--lg-shadow); padding: .7rem .95rem;
    transition: transform .15s var(--lg-bounce), border-color .15s, box-shadow .15s;
}
html body .login-card .form-control::placeholder { color: var(--lg-muted) !important; opacity: .85 !important; font-weight: 500; }
html body .login-card .form-control:focus { border-color: var(--lg-pop) !important; box-shadow: 0 3px 0 var(--lg-pop), 0 0 0 4px rgba(255, 77, 141, .25) !important; transform: translateY(-2px); }
html body .login-card .form-control:disabled { opacity: .6; }
html body .login-card .input-group > .form-control { border-radius: 14px 0 0 14px !important; }
html body .login-card .input-group > .btn { margin-left: -3px; border-radius: 0 14px 14px 0 !important; }
html body .login-card .input-group-sm > .form-control { border-radius: 12px 0 0 12px !important; }
html body .login-card .input-group-sm > .btn { border-radius: 0 12px 12px 0 !important; }
html body .login-card .text-muted, html body .login-card small, html body .login-card .small.text-muted, html body .login-card small.text-muted { color: var(--lg-muted) !important; }
html body .login-card a, html body .login-card .text-muted a { color: var(--lg-link) !important; font-weight: 800; text-decoration: none; }
html body .login-card a:hover { text-decoration: underline; }
html body .login-card .form-check-input { border: 2.5px solid var(--lg-line); background-color: var(--lg-field); width: 1.25em; height: 1.25em; }
html body .login-card .form-check-input:checked { background-color: var(--lg-pop); border-color: var(--lg-line); }
html body .login-card .form-check-label { color: var(--lg-text) !important; font-weight: 600; }
html body .login-card .terms-consent { background: var(--lg-chip); border: 2.5px dashed var(--lg-line); border-radius: 16px; padding: .7rem .9rem; }
html body .login-card .rounded.border { background: var(--lg-field); border: 2.5px solid var(--lg-line) !important; border-radius: 16px !important; color: var(--lg-text); box-shadow: 3px 3px 0 var(--lg-shadow); transition: transform .15s var(--lg-bounce); }
html body .login-card .rounded.border:hover { transform: translateY(-2px) rotate(-.4deg); }
html body .login-card .rounded.border strong { color: var(--lg-text); }
html body .login-card .badge.bg-success { background: var(--lg-lime) !important; color: var(--lg-ink) !important; border: 2px solid var(--lg-ink); font-weight: 900; }

/* ---------- buttons ---------- */
html body .login-card .btn { font-weight: 900; border-radius: 16px; }
html body .btn-login, html body .login-card .btn-primary {
    background: var(--lg-pop) !important; border: 3px solid var(--lg-ink) !important; color: #fff !important; padding: .75rem 1rem;
    box-shadow: 0 5px 0 var(--lg-ink) !important; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); transition: transform .14s var(--lg-bounce), box-shadow .14s;
}
html body .btn-login:hover, html body .login-card .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--lg-ink) !important; background: var(--lg-pop) !important; }
html body .btn-login:active, html body .login-card .btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lg-ink) !important; }
html body .login-card .btn-outline-secondary {
    background: var(--lg-field) !important; color: var(--lg-text) !important; border: 3px solid var(--lg-line) !important; box-shadow: 0 3px 0 var(--lg-shadow); transition: transform .14s var(--lg-bounce);
}
html body .login-card .btn-outline-secondary:hover { transform: translateY(-2px); background: var(--lg-sun) !important; color: var(--lg-ink) !important; }
html body .login-card .btn-outline-primary { background: var(--lg-sky) !important; color: var(--lg-ink) !important; border: 3px solid var(--lg-ink) !important; box-shadow: 0 3px 0 var(--lg-ink); }
html body .login-card .btn:disabled { opacity: .55; }

/* ---------- alerts ---------- */
html body .login-card .alert { border: 3px solid var(--lg-ink); border-radius: 18px; font-weight: 700; box-shadow: 4px 4px 0 var(--lg-shadow); color: var(--lg-ink) !important; }
html body .login-card .alert strong, html body .login-card .alert p, html body .login-card .alert span, html body .login-card .alert small { color: var(--lg-ink) !important; }
html body .login-card .alert a { color: #a3124f !important; }
html body .login-card .alert-danger { background: #ffc9d8; } html body .login-card .alert-success { background: #c9f7d9; }
html body .login-card .alert-warning { background: #ffeaa0; } html body .login-card .alert-info { background: #c6f0ff; }
html body .login-card .alert .btn-close { filter: none; opacity: .8; }

/* ---------- theme button ---------- */
html body .login-theme-fab .theme-toggle, html body .login-theme-fab .theme-toggle--on-dark {
    width: 44px; height: 44px; display: grid; place-items: center; background: #fff !important; color: var(--lg-ink) !important;
    border: 2.5px solid var(--lg-ink) !important; border-radius: 14px; box-shadow: 3px 3px 0 var(--lg-ink);
}
html[data-theme="dark"] body .login-theme-fab .theme-toggle { background: #2a2563 !important; color: #ffd23f !important; border-color: #b9a8ff !important; box-shadow: 3px 3px 0 #000; }

/* ---------- pop-ups used by the login page (Privacy / Terms / confirm dialogs) ---------- */
html body .policy-modal .modal-content, html body .edu-dialog .modal-content {
    background: #fffaf3; color: #14232c; border: 3px solid #14232c; border-radius: 24px; box-shadow: 8px 8px 0 #14232c; overflow: hidden;
}
html body .policy-modal .modal-header { background: #FFD23F; color: #14232c; border: 0; border-bottom: 3px solid #14232c; }
html body .policy-modal#termsModal .modal-header { background: #5EE1FF; }
html body .policy-modal .modal-title { color: #14232c; font-weight: 900; }
html body .policy-modal .btn-close { opacity: 1; filter: none; background-color: #fff; border: 2.5px solid #14232c; border-radius: 50%; padding: .55rem; }
html body .policy-modal .modal-body { color: #14232c; background: #fffaf3; line-height: 1.7; }
html body .policy-modal .modal-body h4, html body .policy-modal .modal-body h5, html body .policy-modal .modal-body h6 { color: #14232c; font-weight: 900; }
html body .policy-modal .modal-body p, html body .policy-modal .modal-body li { color: #2b3d47; }
html body .policy-modal .modal-body a { color: #c01a63; }
html body .policy-modal .modal-footer { background: #fff; border-top: 3px solid #14232c; }
html body .policy-modal .btn-primary { background: #FF4D8D; color: #fff; border: 3px solid #14232c; border-radius: 14px; font-weight: 900; box-shadow: 0 4px 0 #14232c; }
html[data-theme="dark"] body .policy-modal .modal-content, html[data-theme="dark"] body .edu-dialog .modal-content { background: #1b1740; color: #f4f0ff; border-color: #b9a8ff; box-shadow: 8px 8px 0 #000; }
html[data-theme="dark"] body .policy-modal .modal-body, html[data-theme="dark"] body .edu-dialog .modal-body { background: #1b1740; color: #f4f0ff; }
html[data-theme="dark"] body .policy-modal .modal-body h4, html[data-theme="dark"] body .policy-modal .modal-body h5, html[data-theme="dark"] body .policy-modal .modal-body h6 { color: #fff; }
html[data-theme="dark"] body .policy-modal .modal-body p, html[data-theme="dark"] body .policy-modal .modal-body li { color: #d8d2f2; }
html[data-theme="dark"] body .policy-modal .modal-body a { color: #ff9cc7; }
html[data-theme="dark"] body .policy-modal .modal-footer, html[data-theme="dark"] body .edu-dialog .modal-footer { background: #231e50; border-color: #b9a8ff; }
html[data-theme="dark"] body .policy-modal .modal-header { color: #14232c; }


/* beat the embed-mode rules that use !important or #ids (white text meant for the old dark panel) */
html body.is-embed .login-card .text-muted, html body.is-embed .login-card small, html body.is-embed .login-card small.text-muted,
html body.is-embed .login-card .text-muted small, html body.is-embed .login-card label small { color: var(--lg-muted) !important; }
html body.is-embed .login-card .login-header p { color: #fff !important; }
html body.is-embed #loginPanel a, html body.is-embed #registerPanel a, html body.is-embed .login-card a.small, html body.is-embed .terms-consent a,
html body #loginPanel a, html body #registerPanel a { color: var(--lg-link) !important; }
html body #loginPanel .alert a, html body #registerPanel .alert a, html body.is-embed #loginPanel .alert a { color: #a3124f !important; }
html body.is-embed .terms-consent .form-check-label, html body.is-embed .login-card .form-check-label { color: var(--lg-text) !important; }
html body.is-embed .login-card label.border { color: var(--lg-text) !important; background: var(--lg-field) !important; }
html body.is-embed .login-card .alert { color: var(--lg-ink) !important; }
html body.is-embed .login-card .alert-danger { background: #ffc9d8 !important; } html body.is-embed .login-card .alert-success { background: #c9f7d9 !important; }
html body.is-embed .login-card .alert-warning { background: #ffeaa0 !important; } html body.is-embed .login-card .alert-info { background: #c6f0ff !important; }
html body.is-embed .login-card .alert .btn-close { filter: none; }
html body .login-card .form-check-label small { color: var(--lg-muted) !important; }
