/*
 * chat-subdomain.css
 * Add to: /home/admin/web/learn.fidelisozuawala.com/public_html/assets/css/
 * Loaded by: chat.learnwithfidelis.com (not the main site's own chat pages)
 *
 * Covers:
 *  1. Guest / is-guest-body state adjustments
 *  2. Login modal (#aicLoginModal)
 *  3. Lightweight login page (.lwfc-login-page)
 */

/* ═══════════════════════════════════════════════════════
   1. GUEST STATE
   When .aic-guest is on the app wrapper, hide sidebar on desktop.
   On mobile the sidebar can still slide in via toggle button.
═══════════════════════════════════════════════════════ */

@media (min-width: 993px) {
    .aic-guest .aic-sidebar {
        display: none;
    }
    .aic-guest .aic-main {
        margin-left: 0;
    }
}

/* Let the welcome block fill the full available width for guests */
.aic-guest .aic-welcome-inner {
    max-width: 720px;
}

/* Hide tools-mode selectors (applied via JS too, but CSS as safety net) */
.aic-hide-tools #aicModeSelect,
.aic-hide-tools #aicToolSelectWrap,
.aic-hide-tools #aicToolVersionWrap {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════
   2. LOGIN MODAL
═══════════════════════════════════════════════════════ */

.aic-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.aic-modal-box {
    background: #0f1623;
    border: 1px solid rgba(0, 255, 213, 0.18);
    border-radius: 24px;
    padding: 40px 30px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    animation: lwfcModalIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lwfcModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);     }
}

.aic-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 50%;
    color: #8a97a8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}
.aic-modal-close:hover {
    background: rgba(255,255,255,0.14);
    color: #f0f4fa;
}

.aic-modal-logo {
    font-size: 46px;
    margin-bottom: 14px;
    line-height: 1;
}

.aic-modal-title {
    color: #f0f4fa;
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.aic-modal-sub {
    color: #8a97a8;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 26px;
}

/* Google button */
.aic-modal-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    background: #ffffff;
    color: #1a1a2e;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.15s;
    margin-bottom: 12px;
    letter-spacing: 0.1px;
}
.aic-modal-google-btn:hover { opacity: 0.91; color: #1a1a2e; }

/* Divider */
.aic-modal-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #404f60;
    font-size: 12px;
    margin: 4px 0 12px;
}
.aic-modal-divider::before,
.aic-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* "Use LearnWithFidelis" button */
.aic-modal-lwf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    background: rgba(0, 255, 213, 0.09);
    color: #00ffd5;
    border: 1px solid rgba(0, 255, 213, 0.24);
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: 20px;
}
.aic-modal-lwf-btn:hover {
    background: rgba(0, 255, 213, 0.17);
    color: #00ffd5;
}

.aic-modal-register {
    color: #8a97a8;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}
.aic-modal-register a {
    color: #00ffd5;
    text-decoration: none;
    font-weight: 700;
}
.aic-modal-register a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .aic-modal-box { padding: 32px 18px 26px; border-radius: 20px; }
    .aic-modal-title { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════
   3. LIGHTWEIGHT LOGIN PAGE  (.lwfc-login-page)
   Used by chat.learnwithfidelis.com/login
═══════════════════════════════════════════════════════ */

.lwfc-login-page {
    min-height: 100vh;
    background: #060e16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.lwfc-login-box {
    background: #0f1623;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 24px;
    padding: 42px 32px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Logo block */
.lwfc-login-logo {
    text-align: center;
    margin-bottom: 26px;
}
.lwfc-logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}
.lwfc-login-logo h1 {
    color: #f0f4fa;
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}
.lwfc-login-logo small {
    color: #8a97a8;
    font-size: 13px;
}

/* Google btn */
.lwfc-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    background: #ffffff;
    color: #1a1a2e;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: opacity 0.15s;
}
.lwfc-google-btn:hover { opacity: 0.91; color: #1a1a2e; }

/* Divider */
.lwfc-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #404f60;
    font-size: 12px;
    margin: 0 0 16px;
}
.lwfc-divider::before, .lwfc-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Form fields */
.lwfc-form-group { margin-bottom: 14px; }
.lwfc-form-group label {
    display: block;
    color: #c4cedb;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}
.lwfc-form-group input {
    width: 100%;
    min-height: 46px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 0 14px;
    color: #f0f4fa;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.lwfc-form-group input:focus {
    border-color: rgba(0, 255, 213, 0.35);
}
.lwfc-form-group input::placeholder { color: #404f60; }

/* Submit */
.lwfc-submit-btn {
    width: 100%;
    min-height: 50px;
    background: #00ffd5;
    color: #061015;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.15s;
    font-family: 'Syne', 'DM Sans', sans-serif;
    letter-spacing: 0.2px;
}
.lwfc-submit-btn:hover { opacity: 0.88; }

/* Error message */
.lwfc-error-msg {
    background: rgba(248, 113, 113, 0.10);
    border: 1px solid rgba(248, 113, 113, 0.22);
    color: #fecaca;
    padding: 11px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
}
.lwfc-error-msg a { color: #00ffd5; }

/* Footer links */
.lwfc-footer-links {
    text-align: center;
    margin-top: 20px;
    color: #8a97a8;
    font-size: 13px;
    line-height: 1.75;
}
.lwfc-footer-links a {
    color: #00ffd5;
    text-decoration: none;
    font-weight: 700;
}
.lwfc-footer-links a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .lwfc-login-box { padding: 30px 18px 26px; border-radius: 20px; }
}
