@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Karla:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&display=swap');

:root {
    --navy-950: #09090b;
    /* zinc-950 */
    --navy-900: #18181b;
    /* zinc-900 */
    --navy-800: #fafafa;
    /* zinc-50 */
    --navy-700: #e4e4e7;
    /* zinc-200 */
    --navy-600: #1e3a8a;
    /* navy — matches the MentorCFE logo */
    --line: rgba(24, 24, 27, 0.08);

    --orange: #1e3a8a;
    /* primary accent navy */
    --orange-deep: #152a63;
    /* deeper navy */
    --blue: #1e3a8a;
    /* navy */
    --blue-soft: #152a63;
    /* deeper navy */
    --mint: #14b8a6;
    /* teal-500 */
    --amber: #f59e0b;
    /* amber-500 */
    --streak-orange: #1e3a8a;
    /* navy */

    --primary: #1e3a8a;
    /* primary accent navy */
    --primary-hover: #152a63;
    /* deeper navy */
    --primary-light: #eef2ff;
    /* pale navy tint */
    --primary-soft: #dbe3f9;
    /* soft navy tint */
    --gold: #d4af37;
    --gold-hover: #c19b2e;

    --paper: #fafafa;
    /* zinc-50 background */
    --paper-2: #FFFFFF;
    --ink: #18181b;
    /* zinc-900 text */
    --ink-soft: #52525b;
    /* zinc-600 text */
    --muted: #a1a1aa;
    /* zinc-400 text */

    --display: 'Newsreader', serif;
    --body: 'Karla', sans-serif;
    --mono: 'IBM Plex Mono', monospace;

    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-weight: 800;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.accent {
    color: var(--blue);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14.5px;
    font-family: var(--body);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 22px rgba(30, 58, 138, .25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(30, 58, 138, .5);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--blue);
    background: rgba(30, 58, 138, .1);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
    transform: skewX(-18deg);
    transition: left .65s var(--ease);
}

.btn:hover::before {
    left: 150%;
}

/* ============================================================
   FORMS & AUTH PANELS
   ============================================================ */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 42px;
    background: var(--paper);
}

.auth-split-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 8vw;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    border-right: 1px solid #D1DBEA;
}

.auth-split-right {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 40px;
    background: #ffffff;
}

.left-hero h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.1;
}

.left-hero p {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 440px;
    margin-bottom: 40px;
}

/* STREAK WIDGET */
.streak-widget {
    background: #ffffff;
    border: 1px solid #E1E9F6;
    border-radius: 20px;
    padding: 24px;
    max-width: 420px;
    box-shadow: 0 12px 30px rgba(10, 27, 67, 0.05);
}

.streak-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.streak-circle {
    position: relative;
    width: 70px;
    height: 70px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #F1F5F9;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke: var(--streak-orange);
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.streak-days {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
}

.streak-days .num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--display);
    color: var(--ink);
}

.streak-days .lbl {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.streak-info h4 {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 4px;
}

.streak-info p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.4;
}

.streak-week {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.streak-week .day {
    flex: 1;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #F1F5F9;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
}

.streak-week .day.active {
    background: var(--streak-orange);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.streak-footer {
    font-size: 12px;
    color: var(--muted);
    padding-top: 16px;
    border-top: 1px solid #E1E9F6;
}

.left-footer {
    font-size: 13px;
    color: var(--muted);
    margin-top: 40px;
    line-height: 1.6;
}

.left-footer > div {
    white-space: nowrap;
}

.footer-credit-link {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.footer-credit-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .auth-split-wrapper {
        flex-direction: column;
    }

    .auth-split-left {
        display: none;
    }

    .auth-split-right {
        padding: 20px;
    }
}

.auth-panel {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 480px;

}

.auth-panel.register-panel {
    max-width: 580px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--ink-soft);
    font-size: 15px;
}

.auth-tabs {
    display: flex;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
    border: 1px solid #E2E8F0;
}

.auth-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.auth-tabs .tab.active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E2E8F0;
}

.auth-divider:not(:empty)::before {
    margin-right: 15px;
}

.auth-divider:not(:empty)::after {
    margin-left: 15px;
}

.btn-social {
    background: #ffffff;
    border: 1px solid #D1DBEA;
    color: var(--ink);
    width: 100%;
    margin-bottom: 24px;
}

.btn-social:hover {
    background: #F8FAFC;
    border-color: #B4C4DA;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: #F8FAFC;
    border: 1px solid #D1DBEA;
    border-radius: 12px;
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    transition: border-color .3s, background .3s;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blue);
    background: #ffffff;
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.input-with-icon .form-control {
    padding-left: 48px;
}

.input-with-icon .btn-show {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: var(--ink-soft);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.input-with-icon .btn-show:hover {
    color: var(--primary);
}

.form-control::placeholder {
    color: #4A5E85;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C6D3EC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select option {
    background: #ffffff;
    color: var(--ink);
}

.invalid-feedback {
    display: block;
    color: #FF6B6B;
    font-size: 13px;
    margin-top: 6px;
}

.is-invalid {
    border-color: #FF6B6B;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14.5px;
    color: var(--ink-soft);
}

.auth-footer a {
    color: var(--blue-soft);
    font-weight: 600;
    transition: color .25s;
}

.auth-footer a:hover {
    color: var(--ink);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-check-label {
    font-size: 14px;
    color: var(--ink-soft);
}