/* ==========================================================================
   portfolio.css — clean rewrite
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
    --bg: #0a0a0f;
    --bg-alt: #0f0f16;
    --panel: #111118;
    --panel-2: #16161f;
    --border: rgba(255, 255, 255, 0.06);
    --muted: #8a8a9a;
    --text: #f0f0f5;
    --accent: #4f7bff;
    --accent-dim: rgba(79, 123, 255, 0.14);
    --accent-glow: rgba(79, 123, 255, 0.28);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t: 280ms;
}

[data-theme="light"] {
    --bg: #f2f3f8;
    --bg-alt: #e8eaf2;
    --panel: #ffffff;
    --panel-2: #f7f8fc;
    --border: rgba(0, 0, 0, 0.07);
    --muted: #666;
    --text: #0d0d14;
    --accent: #3063f0;
    --accent-dim: rgba(48, 99, 240, 0.1);
    --accent-glow: rgba(48, 99, 240, 0.22);
    --shadow: 0 8px 32px rgba(13, 22, 50, 0.08);
    --shadow-sm: 0 2px 10px rgba(13, 22, 50, 0.06);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition:
        background var(--t) var(--ease),
        color var(--t) var(--ease);
    min-height: 100vh;
}

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

/* Fix Font Awesome — never override fill, only color */
i {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   4. SIDEBAR
   -------------------------------------------------------------------------- */
.side {
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: auto;
    transition:
        transform 260ms var(--ease),
        opacity 260ms var(--ease),
        background var(--t) var(--ease);
}

/* Brand / avatar */
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px 4px;
    border-radius: 10px;
    transition: background var(--t);
}
.brand:hover {
    background: var(--accent-dim);
    cursor: pointer;
}
.brand h1 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.brand p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

/* Nav links */
nav.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}
nav.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition:
        background var(--t),
        color var(--t),
        transform var(--t);
}
nav.side-nav a i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}
nav.side-nav a:hover {
    background: var(--accent-dim);
    color: var(--text);
    transform: translateX(4px);
}
nav.side-nav a.active {
    background: var(--accent-dim);
    color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
}

/* Controls row */
.controls {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--t),
        color var(--t);
}
.toggle-btn:hover {
    background: var(--accent-dim);
}

/* --------------------------------------------------------------------------
   5. HAMBURGER (mobile)
   -------------------------------------------------------------------------- */
.hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
        transform var(--t),
        opacity var(--t);
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
}
.nav-overlay.open {
    display: block;
}

/* --------------------------------------------------------------------------
   6. MAIN CONTENT WRAPPER
   -------------------------------------------------------------------------- */
main {
    padding-bottom: 80px;
}

section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 420ms var(--ease),
        transform 420ms var(--ease),
        background var(--t) var(--ease);
}
section.in-view {
    opacity: 1;
    transform: translateY(0);
}

section h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
    display: inline-block;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin-bottom: 20px;
    opacity: 1 !important;
    transform: none !important;
}

/* Ambient orbs */
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.18;
}
.orb1 {
    width: 380px;
    height: 380px;
    background: var(--accent);
    top: -80px;
    right: -60px;
}
.orb2 {
    width: 260px;
    height: 260px;
    background: #a855f7;
    bottom: -60px;
    left: 10%;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 260px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.hero-text h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 6px 0;
}
.hero-name {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-role {
    font-size: 18px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 12px 0;
}
.hero-desc {
    color: var(--muted);
    max-width: 520px;
    margin: 0 0 28px 0;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero avatar */
.hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.hero-avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--accent), #a78bfa) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: spin 8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition:
        opacity var(--t),
        transform var(--t),
        box-shadow var(--t);
    box-shadow: 0 4px 18px var(--accent-glow);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition:
        background var(--t),
        border-color var(--t),
        transform var(--t);
}
.btn-ghost:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* generic .btn for modal controls */
.btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--t),
        color var(--t);
}
.btn:hover {
    background: var(--accent-dim);
}
.btn.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
}
.btn.ghost:hover {
    color: var(--text);
    background: var(--accent-dim);
}
.close-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   9. SKILLS
   -------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.skill-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border-radius: 12px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition:
        transform var(--t),
        box-shadow var(--t),
        border-color var(--t);
    cursor: default;
}
.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}
.skill-icon {
    font-size: 28px;
}

/* --------------------------------------------------------------------------
   10. PROJECTS
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.project-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--panel-2);
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition:
        transform var(--t),
        box-shadow var(--t),
        border-color var(--t);
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}
.project-card h4 {
    color: var(--accent);
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.project-card .project-thumb {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-alt);
    margin-bottom: 4px;
}
.project-card p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   11. CERTIFICATES
   -------------------------------------------------------------------------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.cert-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    cursor: pointer;
}
.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms var(--ease);
}
.cert-item:hover img {
    transform: scale(1.06);
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        transparent 55%
    );
    display: flex;
    align-items: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity var(--t);
}
.cert-item:hover .cert-overlay {
    opacity: 1;
}
.cert-overlay span {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   12. CONTACT
   -------------------------------------------------------------------------- */
.contact-header {
    margin-bottom: 24px;
}
.contact-header h3 {
    margin-bottom: 4px;
}

.contactform {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.contactform input,
.contactform textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition:
        border-color var(--t),
        box-shadow var(--t);
    outline: none;
}
.contactform input:focus,
.contactform textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.contactform textarea {
    resize: vertical;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
    margin-top: 40px;
    padding: 28px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.social-links a {
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition:
        color var(--t),
        transform var(--t);
}
.social-links a i {
    font-size: 17px;
}
.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}
.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   14. MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 12, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9000;
    padding: 20px;
}
.modal-backdrop.open {
    display: flex;
}

.custom-modal {
    width: 100%;
    max-width: 880px;
    max-height: 92vh;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition:
        transform var(--t) var(--ease),
        opacity var(--t) var(--ease);
}
.modal-backdrop.open .custom-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-header strong {
    font-size: 16px;
    font-weight: 700;
}
.modal-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.modal-body {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.modal-body img {
    max-width: 380px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    max-height: 58vh;
    object-fit: contain;
}
.modal-meta {
    flex: 1;
    min-width: 200px;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Badges */
.badge-container {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: default;
    position: relative;
    color: var(--text);
    background: var(--panel-2);
}
.badge-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}
.badge-icon:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   15. PROFILE MODAL
   -------------------------------------------------------------------------- */
.profile-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 12, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}
.profile-modal-backdrop.open {
    display: flex;
}
.profile-modal {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow);
}
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text);
    font-weight: 700;
}
.profile-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.profile-body a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    transition:
        color var(--t),
        transform var(--t);
    word-break: break-all;
}
.profile-body a i {
    font-size: 16px;
    flex-shrink: 0;
}
.profile-body a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   16. BACK TO TOP
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity var(--t),
        transform var(--t);
    z-index: 900;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   17. ACCESSIBILITY
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        padding: 14px;
        padding-top: 64px; /* room for hamburger */
    }

    .side {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        z-index: 1060;
        transform: translateX(-280px);
        transition: transform 300ms var(--ease);
    }
    .side.open {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 32px 20px;
    }
    .hero-avatar {
        width: 110px;
        height: 110px;
    }
    .hero-text h2 {
        font-size: 26px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    section {
        padding: 22px 18px;
    }
    .modal-body img {
        max-width: 100%;
    }
}

main.center-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(
        100vh - 48px
    ); /* accounts for .layout's 24px top+bottom padding */
}

.login-wrapper {
    margin: 0; /* flex centering replaces the old auto-margin approach */
}
.login-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
}

.login-card {
    padding: 30px 35px;
    border-radius: 16px;
    background: #1f1f25; /* Dark card */
    color: #eee;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
}

.login-card h2 {
    font-weight: 600;
    margin-bottom: 20px;
    font-family: Poppins, sans-serif;
    text-align: center;
    color: #ffffff;
}

.login-card .form-control {
    border-radius: 10px;
    padding: 12px 14px;
    background: #2a2a31;
    border: 1px solid #3a3a43;
    color: #fff;
}

.login-card .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.15rem rgba(99, 102, 241, 0.3);
}

.login-card button {
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-card a {
    font-size: 0.85rem;
    color: #9aa0b7;
}

.login-card a:hover {
    color: #c3cae7;
}
.login-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-card .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.login-card .form-control {
    display: block;
    width: 100%;
}

.login-card .mb-3,
.login-card .mb-5 {
    margin-bottom: 0; /* handled by form gap instead */
}

.login-card .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}
