@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0b1728;
  --muted: #8492a7;
  --line: rgba(255, 255, 255, .1);
  --lime: #c7f765;
  --white: #f7f9fc;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 70% 15%, #10233a 0, transparent 28%), var(--bg); color: var(--white); font-family: var(--font-body); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.shell { position: relative; z-index: 1; min-height: 100vh; }
.ambient { position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; }
.ambient-one { width: 34rem; height: 34rem; top: -18rem; right: -12rem; background: #3289ff; }
.ambient-two { width: 24rem; height: 24rem; bottom: -13rem; left: -12rem; background: #c7f765; opacity: .08; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--lime); color: #101a0b; font-size: 21px; box-shadow: 0 10px 30px rgba(199,247,101,.16); }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-body); font-size: 8px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { margin: 0 0 15px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.login-view { display: grid; min-height: 100vh; grid-template-columns: minmax(380px, .95fr) minmax(480px, 1.05fr); }
.login-intro { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(32px, 5vw, 72px); border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 55%); }
.intro-copy { max-width: 600px; margin: auto 0; padding: 80px 0; }
.intro-copy h1 { margin: 0; font-family: var(--font-display); font-size: clamp(42px, 5vw, 78px); font-weight: 500; line-height: 1.03; letter-spacing: -.055em; }
.intro-copy h1 em { color: var(--lime); font-style: normal; }
.intro-copy > p:last-child { max-width: 470px; margin: 30px 0 0; color: #9eabbd; font-size: 17px; line-height: 1.8; }
.login-note { display: flex; align-items: center; gap: 10px; margin: 0; color: #758398; font-size: 12px; }
.login-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: 32px; }
.login-card { width: min(100%, 440px); padding: 42px; border: 1px solid var(--line); border-radius: 28px; background: rgba(11, 23, 40, .82); box-shadow: 0 32px 80px rgba(0,0,0,.3); backdrop-filter: blur(22px); }
.lock-icon { display: grid; width: 54px; height: 54px; margin-bottom: 32px; place-items: center; border: 1px solid rgba(199,247,101,.22); border-radius: 17px; background: rgba(199,247,101,.08); color: var(--lime); }
.lock-icon svg { width: 24px; }
.login-card h2 { margin: 0; font-family: var(--font-display); font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.form-lead { margin: 13px 0 32px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card label { display: block; margin: 0 0 9px; color: #b8c2d0; font-size: 12px; font-weight: 700; }
.input-wrap { position: relative; margin-bottom: 20px; }
.input-wrap > svg { position: absolute; top: 50%; left: 16px; width: 18px; transform: translateY(-50%); color: #647389; pointer-events: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.input-wrap input { width: 100%; height: 53px; padding: 0 48px 0 46px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: rgba(255,255,255,.035); color: var(--white); font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input::placeholder { color: #526075; }
.input-wrap input:focus { border-color: rgba(199,247,101,.65); background: rgba(255,255,255,.055); box-shadow: 0 0 0 4px rgba(199,247,101,.07); }
.password-toggle { position: absolute; top: 50%; right: 10px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; transform: translateY(-50%); border: 0; background: transparent; color: #65748a; cursor: pointer; }
.password-toggle:hover { color: var(--white); }
.password-toggle svg { width: 19px; }
.form-error { min-height: 19px; margin: -4px 0 9px; color: #ff7d84; font-size: 12px; }
.submit-button { display: flex; width: 100%; height: 53px; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; border-radius: 13px; background: var(--lime); color: #101a0b; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.submit-button:hover { transform: translateY(-2px); background: #d6ff83; box-shadow: 0 14px 34px rgba(199,247,101,.17); }
.submit-button span { font-size: 21px; }
.login-card.shake { animation: shake .35s ease; }

.dashboard-view { display: flex; min-height: 100vh; flex-direction: column; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(24px, 6vw, 88px); border-bottom: 1px solid var(--line); background: rgba(7,17,31,.76); backdrop-filter: blur(18px); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.admin-badge { display: flex; align-items: center; gap: 8px; color: #aab5c5; font-size: 12px; font-weight: 700; }
.admin-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.logout-button { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); color: #aab5c5; font-size: 12px; font-weight: 700; cursor: pointer; }
.logout-button:hover { border-color: rgba(255,255,255,.22); color: white; }
.logout-button svg { width: 17px; }
.dashboard-content { width: min(1240px, calc(100% - 48px)); margin: auto; padding: 72px 0 90px; }
.back-button { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 9px 13px 9px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); color: #aab5c5; font-size: 12px; font-weight: 700; cursor: pointer; }
.back-button:hover { border-color: rgba(199,247,101,.32); color: var(--lime); }
.back-button svg { width: 18px; }
.dashboard-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.dashboard-title-row h1 { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 5vw, 58px); font-weight: 500; letter-spacing: -.055em; }
.dashboard-title-row p { margin: 15px 0 0; color: var(--muted); font-size: 15px; }
.project-counter { display: flex; align-items: center; gap: 12px; }
.project-counter strong { color: var(--lime); font-family: var(--font-display); font-size: 38px; font-weight: 500; }
.project-counter span { color: #78869a; font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.catalog-card { position: relative; display: grid; min-height: 310px; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 25px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); color: var(--white); text-align: left; cursor: pointer; transition: transform .28s, border-color .28s, box-shadow .28s; }
.catalog-card::before { content: ''; position: absolute; width: 260px; height: 260px; top: -130px; right: -90px; border-radius: 50%; filter: blur(15px); opacity: .1; }
.catalog-card-lime::before { background: var(--lime); }
.catalog-card-blue::before { background: #55a9ff; opacity: .16; }
.catalog-card:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.22); box-shadow: 0 28px 65px rgba(0,0,0,.28); }
.folder-visual { position: relative; display: block; width: 112px; height: 88px; color: var(--lime); }
.catalog-card-blue .folder-visual { color: #69b6ff; }
.folder-tab { position: absolute; top: 3px; left: 8px; width: 48px; height: 23px; border-radius: 11px 11px 3px 3px; background: currentColor; opacity: .8; }
.folder-body { position: absolute; inset: 15px 0 0; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 14px; background: color-mix(in srgb, currentColor 13%, #0b1728); box-shadow: 0 18px 45px color-mix(in srgb, currentColor 12%, transparent); }
.folder-body svg { width: 38px; opacity: .8; }
.catalog-copy { grid-column: 1 / -1; align-self: end; }
.catalog-meta { display: block; margin-bottom: 10px; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.catalog-card-blue .catalog-meta { color: #69b6ff; }
.catalog-copy strong { display: block; margin-bottom: 9px; font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: -.04em; }
.catalog-copy > span:last-child { display: block; max-width: 400px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.catalog-arrow { position: absolute; right: 30px; bottom: 30px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lime); font-size: 20px; transition: background .2s, color .2s; }
.catalog-card-blue .catalog-arrow { color: #69b6ff; }
.catalog-card:hover .catalog-arrow { background: var(--lime); color: #101a0b; }
.catalog-card-blue:hover .catalog-arrow { background: #69b6ff; color: #07111f; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.project-card { position: relative; overflow: hidden; min-height: 385px; border: 1px solid var(--line); border-radius: 25px; background: #0b1728; color: white; text-decoration: none; transition: transform .28s, border-color .28s, box-shadow .28s; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(199,247,101,.36); box-shadow: 0 28px 65px rgba(0,0,0,.28); }
.project-preview { position: relative; height: 245px; overflow: hidden; background: #162234; }
.project-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,17,31,.55), transparent 45%); }
.project-preview iframe { width: 160%; height: 160%; border: 0; transform: scale(.625); transform-origin: top left; pointer-events: none; transition: transform .55s; }
.project-card:hover .project-preview iframe { transform: scale(.64); }
.preview-browser { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; gap: 5px; padding: 7px 10px; border-radius: 20px; background: rgba(6,13,23,.6); backdrop-filter: blur(8px); }
.preview-browser i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.52); }
.project-info { display: flex; min-height: 140px; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 27px; }
.project-type { display: block; margin-bottom: 8px; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.project-info h2 { margin: 0 0 7px; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.035em; }
.project-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-arrow { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lime); font-size: 20px; transition: background .2s, color .2s; }
.project-card:hover .card-arrow { background: var(--lime); color: #101a0b; }
.empty-state { padding: 72px 30px; border: 1px dashed rgba(255,255,255,.14); border-radius: 25px; background: rgba(255,255,255,.018); text-align: center; }
.empty-icon { display: grid; width: 70px; height: 70px; margin: 0 auto 22px; place-items: center; border: 1px solid rgba(105,182,255,.22); border-radius: 21px; background: rgba(105,182,255,.07); color: #69b6ff; }
.empty-icon svg { width: 31px; }
.empty-state h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -.04em; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.dashboard-footer { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(24px, 6vw, 88px); border-top: 1px solid var(--line); color: #58667a; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-footer span:last-child { display: flex; align-items: center; gap: 9px; }
.dashboard-footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
[hidden] { display: none !important; }

@keyframes shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; }
  .login-intro { min-height: auto; padding-bottom: 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-copy { padding: 90px 0 30px; }
  .intro-copy h1 { font-size: clamp(40px, 11vw, 68px); }
  .login-panel { min-height: auto; padding: 60px 24px 80px; }
  .catalog-grid,
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .login-intro { padding: 24px; }
  .intro-copy { padding-top: 72px; }
  .login-card { padding: 27px 22px; border-radius: 22px; }
  .dashboard-header { padding: 18px; }
  .admin-badge { display: none; }
  .dashboard-content { width: calc(100% - 32px); padding: 50px 0 65px; }
  .dashboard-title-row { align-items: start; flex-direction: column; margin-bottom: 30px; }
  .catalog-card { min-height: 275px; padding: 24px; }
  .catalog-arrow { right: 24px; bottom: 24px; }
  .project-card { min-height: 330px; }
  .project-preview { height: 205px; }
  .project-info { min-height: 125px; padding: 20px; }
  .project-info h2 { font-size: 18px; }
  .dashboard-footer { align-items: start; flex-direction: column; gap: 10px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
