/* protectednetwork cloud storage */
:root {
  --accent: #0369a1;
  --accent-soft: #e0f2fe;
  --ink: #0f172a;
  --paper: #f8fafc;
  --muted: #52525b;
  --line: #e2e2e7;
  --field: #ffffff;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }

.shell { flex: 1; width: 100%; }

/* brand mark */
.mark { display: inline-flex; align-items: center; gap: .6rem; color: inherit; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.mark__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--accent); color: #ffffff; flex: none; }
.mark--compact { font-size: 1.1rem; }
.mark--compact .mark__icon { width: 2rem; height: 2rem; }

/* sign-in split */
.signin { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }

.pane { display: flex; flex-direction: column; gap: 1.5rem; padding: 3.5rem clamp(2rem, 4vw, 4rem); color: #ffffff; background: linear-gradient(150deg, var(--accent), var(--ink)); }
.pane .mark { color: #ffffff; }
.pane .mark__icon { background: rgba(255, 255, 255, .16); }
.pane__tag { max-width: 24rem; font-size: 1.5rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.pane__points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.pane__points li { position: relative; padding-left: 1.7rem; color: rgba(255, 255, 255, .88); }
.pane__points li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .75rem; height: .4rem; border-left: 2px solid #ffffff; border-bottom: 2px solid #ffffff; transform: rotate(-45deg); }

/* file preview card */
.mock { margin-top: auto; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); overflow: hidden; backdrop-filter: blur(2px); }
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.mock__rows { display: flex; flex-direction: column; }
.mock__row { display: grid; grid-template-columns: 1.3rem 1fr auto; align-items: center; gap: .8rem; padding: .7rem 1rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.mock__row:first-child { border-top: 0; }
.mock__file { width: 1.1rem; height: 1.1rem; border-radius: 4px; background: rgba(255, 255, 255, .55); }
.mock__name { color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__size { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

/* login panel */
.panel { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.card { width: 100%; max-width: 24rem; display: flex; flex-direction: column; gap: 1rem; }
.card > .mark { margin-bottom: .5rem; color: var(--ink); }
.card__sub { color: var(--muted); }
.card__foot { margin-top: .5rem; color: var(--muted); font-size: .9rem; }

.form { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field__label { font-size: .9rem; font-weight: 600; }
.field__input { width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); font: inherit; }
.field__input::placeholder { color: #9ca3af; }
.field__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.form__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.form__meta a { text-decoration: none; }
.form__meta a:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.3rem; border: 0; border-radius: 10px; background: var(--accent); color: #ffffff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.btn:hover { background: var(--ink); }

/* 404 */
.notfound { max-width: 30rem; margin: 0 auto; padding: 5rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; min-height: 100vh; justify-content: center; }
.notfound .mark { color: var(--ink); }
.notfound__code { color: var(--accent); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.notfound__lead { color: var(--muted); }
.notfound .btn { margin-top: .5rem; }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.25rem clamp(1.5rem, 4vw, 4rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 55rem) {
  .signin { grid-template-columns: 1fr; min-height: 0; }
  .pane { display: none; }
  .panel { min-height: calc(100vh - 4rem); padding: 2.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
