@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+3:wght@400;600;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --light:   #b9bbbc;
  --dark:    #3e3d40;
  --mid:     #47464a;
  --surface: #5a595d;
  --white:   #f5f4f2;
  --accent:  #b9bbbc;
  --error:   #ff4d4f;
}

/* ── Base body ─────────────────────────────────────────────────────────────── */
body {
  min-height: 100vh;
  background-color: var(--dark);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(185,187,188,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(185,187,188,0.05) 0%, transparent 60%);
  font-family: 'Source Sans 3', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* ── Animation ─────────────────────────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--white);
  letter-spacing: -0.3px;
}

label {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--mid);
  border: 1px solid rgba(185,187,188,0.2);
  border-radius: 20px;
  padding: 56px 60px 60px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  animation: rise 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Logo area ─────────────────────────────────────────────────────────────── */
.logo-area {
  text-align: center;
  margin-bottom: 44px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-icon img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--light);
  opacity: 0.8;
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(185,187,188,0.15);
  margin: 0 -8px 36px;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 18px 22px;
  font-size: 1.2rem;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--dark);
  border: 2px solid rgba(185,187,188,0.25);
  border-radius: 12px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(185,187,188,0.4);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--light);
  box-shadow: 0 0 0 4px rgba(185,187,188,0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 18px 32px;
  font-size: 1.15rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--light);
  color: var(--dark);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: #d0d2d3;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.btn-primary:active { transform: scale(0.98); }

.btn-login {
  margin-top: 8px;
  width: 100%;
  padding: 22px;
  font-size: 1.25rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  background: var(--light);
  color: var(--dark);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

.btn-login:hover {
  background: #d0d2d3;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.btn-login:active { transform: scale(0.98); }

/* ── Feedback messages ─────────────────────────────────────────────────────── */
.error {
  margin-top: 20px;
  padding: 16px;
  background: var(--error);
  color: white;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.success {
  margin-top: 20px;
  padding: 16px;
  background: #3a7d44;
  color: white;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

/* ── Help text ─────────────────────────────────────────────────────────────── */
.help-text {
  text-align: center;
  font-size: 1rem;
  color: rgba(185,187,188,0.6);
  margin-top: 24px;
  line-height: 1.6;
}

.help-text strong {
  display: block;
  color: var(--light);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.dashboard-wrap {
  width: 100%;
  max-width: 960px;
  text-align: center;
}

.dashboard-header {
  margin-bottom: 56px;
  animation: rise 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.dashboard-header h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.dashboard-sub {
  font-size: 1.2rem;
  color: var(--light);
  opacity: 0.75;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Dashboard buttons ─────────────────────────────────────────────────────── */
.dash-btn {
  background: var(--mid);
  border: 1px solid rgba(185,187,188,0.18);
  border-radius: 20px;
  padding: 48px 24px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: rise 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.dash-btn:nth-child(1) { animation-delay: 0.08s; }
.dash-btn:nth-child(2) { animation-delay: 0.16s; }
.dash-btn:nth-child(3) { animation-delay: 0.24s; }

.dash-btn:hover {
  background: var(--surface);
  border-color: rgba(185,187,188,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

.dash-btn:active { transform: translateY(-2px); }

.dash-btn__icon {
  width: 88px;
  height: 88px;
  background: var(--dark);
  border-radius: 50%;
  border: 2px solid rgba(185,187,188,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.dash-btn:hover .dash-btn__icon {
  border-color: rgba(185,187,188,0.5);
}

.dash-btn__icon svg {
  width: 42px;
  height: 42px;
  stroke: var(--light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dash-btn__label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}

.dash-btn__hint {
  font-size: 1rem;
  color: var(--light);
  opacity: 0.65;
}

@media (max-width: 720px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .dashboard-header h1 { font-size: 2rem; }
}

@media (max-width: 560px) {
  .card { padding: 40px 28px 44px; }
  h1 { font-size: 1.7rem; }
}