/* Public Academy pages (/academy/verify, /academy/apply) - matches login page branding */
:root {
    --ac-ink: #1a1d3a;
    --ac-accent: #5b5ef4;
    --ac-accent-dark: #4a4de0;
    --ac-muted: #5a5f7a;
    --ac-line: #e0e2ef;
    --ac-soft: #f4f5ff;
}

html, body.acad-body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef0fe 40%, #e8eafd 100%);
    background-attachment: fixed;
    color: var(--ac-ink);
}

.acad-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.acad-page::before {
    content: '';
    position: absolute;
    top: -140px; right: -140px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(91,94,244,0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.acad-page::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(91,94,244,0.09) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- top bar ---- */
.acad-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid var(--ac-line);
}
.acad-topbar .acad-logo img { height: 28px; }
.acad-topbar .acad-nav a {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ac-accent);
    border: 1.5px solid rgba(91,94,244,0.35);
    text-decoration: none;
    transition: all 0.2s;
}
.acad-topbar .acad-nav a:hover,
.acad-topbar .acad-nav a.active {
    background: var(--ac-accent);
    border-color: var(--ac-accent);
    color: #fff;
}

/* ---- main area ---- */
.acad-main {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
}
.acad-container { width: 100%; max-width: 1180px; margin: 0 auto; }

.acad-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(91,94,244,0.08);
    border: 1px solid rgba(91,94,244,0.18);
    border-radius: 100px;
    padding: 5px 14px 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ac-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.acad-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--ac-accent);
    border-radius: 50%;
}
.acad-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ac-ink);
    margin: 0 0 14px 0;
}
.acad-headline em { color: var(--ac-accent); font-style: normal; }
.acad-sub {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ac-muted);
    margin: 0 0 24px 0;
    max-width: 480px;
}

/* ---- verify page split ---- */
.acad-split { display: flex; align-items: center; gap: 56px; }
.acad-split .acad-left { flex: 1 1 50%; }
.acad-split .acad-right { flex: 1 1 50%; max-width: 480px; }
.acad-hero-img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 12px;
}
.acad-lowrow { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.acad-lowrow .acad-points { flex: 1 1 260px; margin: 0; }
.acad-lowrow .acad-hero-img { max-width: 230px; }
.acad-hero-wrap {
    flex: 0 0 auto;
    display: inline-block;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(91,94,244,0.12);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(40,44,120,0.12);
    margin-top: 6px;
}
.acad-points { list-style: none; padding: 0; margin: 0 0 18px 0; }
.acad-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #3d4168;
}
.acad-points .ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(91,94,244,0.10);
    color: var(--ac-accent);
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 34px;
}

/* ---- card ---- */
.acad-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(91,94,244,0.10);
    box-shadow: 0 18px 50px rgba(40,44,120,0.10);
    padding: 34px 36px;
}
.acad-card-title { font-size: 20px; font-weight: 700; color: var(--ac-ink); margin: 0 0 4px 0; }
.acad-card-sub { font-size: 13px; color: var(--ac-muted); margin: 0 0 22px 0; }

/* ---- form controls (override legacy small inputs) ---- */
.acad-page .labelSmall {
    font-size: 12.5px;
    font-weight: 600;
    color: #3d4168;
    margin-bottom: 6px;
}
.acad-page .form-group.required .control-label:after { content: " *"; color: #e5484d; }
.acad-page .smallColoumn,
.acad-page input.form-control,
.acad-page select.form-control {
    height: 42px;
    border: 1.5px solid var(--ac-line);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--ac-ink);
    background: #fff;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.acad-page .smallColoumn:focus,
.acad-page input.form-control:focus {
    outline: none;
    border-color: var(--ac-accent);
    box-shadow: 0 0 0 3px rgba(91,94,244,0.12);
}
.acad-page .smallColoumn::placeholder { color: #b0b3c8; }
.acad-page .select2-container { width: 100% !important; }
.acad-page .select2-container .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid var(--ac-line) !important;
    border-radius: 10px !important;
    margin-top: 0 !important;
    padding: 0 8px !important;
}
.acad-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: normal !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: var(--ac-ink) !important;
}
.acad-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    margin-top: 0 !important;
}
.acad-page .error { font-size: 12px; color: #e5484d; }

/* ---- buttons ---- */
.acad-page .btn-acad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 28px;
    border: none;
    border-radius: 10px;
    background: var(--ac-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.acad-page .btn-acad:hover {
    background: var(--ac-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(91,94,244,0.30);
}
.acad-page .btn-acad:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.acad-page .btn-acad-block { width: 100%; }
.acad-page .btn-acad-ghost {
    background: #fff;
    color: var(--ac-accent);
    border: 1.5px solid rgba(91,94,244,0.35);
}
.acad-page .btn-acad-ghost:hover { background: var(--ac-soft); color: var(--ac-accent); box-shadow: none; }

/* ---- apply page ---- */
.acad-apply-head { text-align: center; margin-bottom: 26px; }
.acad-apply-head .acad-sub { margin: 0 auto; }
.acad-apply-card { max-width: 1040px; margin: 0 auto; }
.acad-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ac-line);
    font-size: 15px;
    font-weight: 700;
    color: var(--ac-ink);
}
.acad-section .ico {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(91,94,244,0.10);
    color: var(--ac-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.acad-section.spaced { margin-top: 26px; }
.acad-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--ac-line);
}

/* ---- footer ---- */
.acad-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #8b8fa8;
}
.acad-footer a { color: var(--ac-accent); text-decoration: none; font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 900px) {
    .acad-topbar { padding: 14px 20px; }
    .acad-topbar .acad-logo img { height: 24px; }
    .acad-main { padding: 24px 16px; }
    .acad-split { flex-direction: column; gap: 24px; }
    .acad-split .acad-right { max-width: 100%; width: 100%; }
    .acad-hero-wrap { display: none; }
    .acad-card { padding: 24px 20px; }
    .acad-actions { flex-direction: column-reverse; }
    .acad-actions .btn-acad { width: 100%; }
}

@media (max-width: 600px) {
    .acad-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px 12px;
    }
    .acad-topbar .acad-logo { text-align: center; }
    .acad-topbar .acad-logo img { height: 24px; }
    .acad-topbar .acad-nav { display: flex; gap: 8px; }
    .acad-topbar .acad-nav a {
        flex: 1 1 0;
        margin: 0;
        padding: 9px 8px;
        text-align: center;
        font-size: 12.5px;
    }
    .acad-headline { font-size: 26px; }
    .acad-sub { font-size: 14px; }
}
