/* ===== Shared styles — used across login, register, and welcome pages ===== */

*, *::before, *::after { font-family: "Inter", sans-serif; box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #fff; }

/* ── Navbar ── */
.navbar {
    background: #fff;
    padding: 22px 60px 22px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.brand-logo { font-size: calc(1.81rem - 1px); font-weight: 950; color: #827bff; letter-spacing: 0.3px; white-space: nowrap; margin-left: 4px; -webkit-text-stroke: 0.6px #827bff; }
.brand-logo span, .brand-in { color: #27cdcb; -webkit-text-stroke: 0.6px #27cdcb; }
.brand-sub  { color: #7fe9e7; font-weight: 500; font-size: 17px; margin-left: 8px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.02em; }

.testing-badge {
    background: #e53e3e; color: #fff; font-size: 0.8rem; font-weight: 600;
    padding: 7px 16px; border-radius: 6px; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
}

.navbar .d-md-flex { gap: 23px !important; }

.nav-link-custom { color: #333; font-size: 0.9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-link-custom:hover { color: #6c3fd1; }

.login-button {
    display: inline-flex; position: relative; gap: 4px; justify-content: center; align-items: center;
    cursor: pointer; background: none; border: none; font-size: 16px; font-weight: 500;
    line-height: 24px; color: #000; transition: color 0.2s ease; text-decoration: none; white-space: nowrap;
}
.login-button:hover { color: #a855f7; }

.btn-signup {
    display: inline-flex; position: relative; gap: 4px; justify-content: center; align-items: center;
    padding: 10px 19px; border-radius: 0.5rem; border: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    cursor: pointer; background: linear-gradient(to bottom, #756fff 0%, #756fff 100%);
    color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none;
    transition: opacity 0.2s ease; letter-spacing: 0.07em; white-space: nowrap;
}
.btn-signup:hover { opacity: 0.9; }

.navbar-toggler { border: none; background: none; font-size: 1.4rem; cursor: pointer; color: #333; padding: 0; }

/* Mobile nav drawer */
.nav-links-collapse { display: none; }
.nav-links-collapse.open {
    display: flex !important; flex-direction: column; gap: 14px;
    padding: 14px 16px 8px; border-top: 1px solid #f0f0f0;
}

/* ── Two-column page layout ── */
.page-body {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    overflow: visible;
}

.left-col {
    flex: 0 0 52%;
    max-width: 52%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 32px;
    position: relative;
    height: 100%;
}

.auth-card-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 450px;
    max-width: 100%;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    background: rgba(184, 139, 243, 0.55);
    border-radius: 60px;
    filter: blur(55px);
    pointer-events: none;
    z-index: 0;
}

.right-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 210px;
    height: 100%;
    position: relative;
}

.char-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(167,139,250,0.22) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.right-col img {
    position: relative;
    z-index: 1;
    max-height: calc(38vh + 40px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(-14px 4px 24px rgba(108,63,209,0.32)) drop-shadow(-6px 2px 10px rgba(0,0,0,0.14));
}

.card-brand-logo {
    font-size: 4.8rem; font-weight: 900; color: #bab1f7;
    letter-spacing: 2px; text-align: center; line-height: 1;
    -webkit-text-stroke: 2.5px #bab1f7;
}

.card-brand-logo .brand-in { color: inherit; }

.card-brand-sub {
    color: #82eae8; font-weight: 900; font-size: calc(0.95rem + 2px);
    text-transform: uppercase; text-shadow: 0 0 0.6px currentColor, 0 0 0.6px currentColor;
    text-align: center; margin-top: 6px; margin-bottom: 28px;
}

.card-footer-text { text-align: center; font-size: 0.85rem; color: #6b7280; margin-top: 20px; }
.card-footer-text a { color: #6c3fd1; text-decoration: none; font-weight: 500; }
.card-footer-text a:hover { text-decoration: underline; }

/* ── Auth card (login / register form) ── */
.auth-card {
    background: #fff;
    border-radius: 28px;
    padding: 3rem 2.75rem;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 50px rgba(108, 63, 209, 0.12);
    position: relative;
    z-index: 1;
}

.auth-input-group { position: relative; margin-bottom: 1rem; }

.auth-input-group .icon-left {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #9b8df0; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
}

.auth-input-group input {
    width: 100%; padding: 12px 42px 12px 42px; border-radius: 10px;
    border: 1px solid #ece9fb; background: #f7f6fd; font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-group input:focus {
    outline: none; border-color: #a78bfa; background: #fff;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}

.auth-input-group .toggle-eye {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.auth-options {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; font-size: 0.88rem; color: #4b5563;
}
.auth-options a { color: #6c3fd1; text-decoration: none; }
.auth-options a:hover { text-decoration: underline; }

.auth-submit-btn {
    width: 100%; padding: 6px 12px; border: none; border-radius: 10px;
    background: #c1b4f8;
    color: #fff; font-weight: 700; font-size: 1.2rem; cursor: pointer;
    transition: opacity 0.2s ease;
}
.auth-submit-btn:hover { opacity: 0.92; }

.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 1.5rem 0; color: #3b3c3d; font-size: 1rem;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-bottom: 1px solid #f7f7f7; }

.auth-google-btn {
    width: fit-content; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 24px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff;
    color: #000; font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: background 0.2s ease;
}
.auth-google-btn:hover { background: #f9fafb; color: #000; }

/* ── Bootstrap-based auth form pages (register, password reset, etc.) ── */
.form-container {
    position: relative;
    background: #fff;
    border-radius: 28px;
    padding: 3rem 2.75rem;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 50px rgba(108, 63, 209, 0.12);
    z-index: 1;
}

.form-container h2.text-dark-blue {
    color: #27cdcb !important;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
}

.form-container form > .d-flex {
    margin-top: 8px;
}

.form-container .form-label {
    font-weight: 500;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.form-container .custom-input {
    border: 1px solid #e5e4f0 !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 0.93rem;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-container .custom-input:focus {
    border-color: #a78bfa !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15) !important;
    outline: none;
}

.form-container a.text-dark-blue {
    color: #6c3fd1;
    font-size: 0.88rem;
    text-decoration: none;
}
.form-container a.text-dark-blue:hover { color: #5b32b0; text-decoration: underline; }

.form-container .btn-dark-blue {
    background: linear-gradient(to bottom, #8b7bff, #756fff) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 28px !important;
    font-weight: 600;
    color: #fff !important;
    transition: opacity 0.2s;
}
.form-container .btn-dark-blue:hover { opacity: 0.9; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .navbar { padding: 12px 24px; }
    .page-body { flex-direction: column; height: auto; overflow: visible; padding: 40px 20px; }
    .left-col, .right-col { flex: none; max-width: 100%; width: 100%; height: auto; justify-content: center; padding: 0; }
    .right-col img { max-height: 280px; }
    .char-glow { width: 280px; height: 280px; }
}

@media (max-width: 767px) {
    .navbar { padding: 10px 16px; height: auto; }
    .brand-sub { display: none; }
    .testing-badge { font-size: 0.72rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
    .brand-logo { font-size: 1.2rem; }
    .testing-badge { font-size: 0.68rem; padding: 4px 9px; }
}

/* ── Forgot Password Modal ── */
.fp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-modal {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2.25rem 2rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    margin: 16px;
}

.fp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.fp-modal-close:hover { color: #111; }

.fp-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.fp-modal-desc {
    font-size: 0.87rem;
    color: #6b7280;
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

.fp-status-msg {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.87rem;
    margin-bottom: 1rem;
}

.fp-field { margin-bottom: 0.25rem; }

.fp-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.35rem;
}

.fp-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.93rem;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fp-field input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}

.fp-actions {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.fp-cancel-btn {
    padding: 10px 22px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-weight: 500;
    font-size: 0.93rem;
    cursor: pointer;
    transition: background 0.15s;
}
.fp-cancel-btn:hover { background: #f3f4f6; }

.fp-submit-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to bottom, #c1b4f8, #a994f5);
    color: #fff;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.fp-submit-btn:hover { opacity: 0.9; }
