﻿@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --ink: #101920;
  --ink-soft: #3d4a4a;
  --accent: #e4541b;
  --accent-dark: #c74716;
  --neutral: #a1afaf;
  --bg-a: #f7f7f6;
  --bg-b: #edf1f0;
  --panel: #ffffff;
  --line: #d4dddd;
  --ok: #0f8a4b;
}

body.theme-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, #ffe1d6 0%, #ffe1d6 20%, transparent 42%),
    radial-gradient(circle at 88% 90%, #d8e2e2 0%, #d8e2e2 18%, transparent 42%),
    linear-gradient(135deg, var(--bg-a), var(--bg-b));
}

body.theme-body.login-body {
  background: #101920;
}

body.theme-body.dashboard-body {
  background: #101920;
}

.login-layout {
  width: min(1080px, 92vw);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.login-brand {
  display: flex;
  justify-content: center;
}

.login-cards-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.login-hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 42px rgba(16, 25, 32, 0.08);
}

.login-hero {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
}

.login-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 44ch;
}

.brand-logo {
  width: min(390px, 100%);
  height: auto;
  margin: 0;
}

.login-panel {
  padding: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.loading {
  opacity: 0.35;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid var(--neutral);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}

input:focus,
select:focus {
  outline: 2px solid #f0a78d;
  outline-offset: 0;
}

.password-field {
  display: flex;
  gap: 8px;
  align-items: center;
}

.password-field input {
  flex: 1;
}

.password-toggle {
  white-space: nowrap;
  padding: 10px 12px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #e8ecec;
  color: var(--ink);
}

.topbar {
  width: min(1120px, 94vw);
  margin: 24px auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-logo {
  width: 184px;
  margin: 0;
}

.topbar h1 {
  margin: 0;
}

.dashboard-grid {
  width: min(1120px, 94vw);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.left-stack {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 22px;
}

.skeleton-box {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e6ebeb 0%, #f7f7f7 48%, #e6ebeb 100%);
  background-size: 280px 14px;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-line:nth-child(1) {
  width: 92%;
}

.skeleton-line:nth-child(2) {
  width: 98%;
}

.skeleton-line:nth-child(3) {
  width: 84%;
}

.skeleton-line:nth-child(4) {
  width: 74%;
}

@keyframes shimmer {
  0% {
    background-position: -280px 0;
  }
  100% {
    background-position: 280px 0;
  }
}

.status {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.status.success {
  color: var(--ok);
  font-weight: 600;
}

.files-list {
  margin: 0;
  padding-left: 18px;
}

.files-list li {
  margin: 0 0 10px;
}

.files-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.files-list a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.info-table thead th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: #45545b;
}

.info-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #ebefef;
  vertical-align: top;
}

.last-transaction-cell {
  color: #425154;
  font-weight: 600;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .login-cards-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .login-hero {
    order: 2;
  }

  .login-panel {
    order: 1;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .topbar-logo {
    width: 150px;
  }
}
