/* -------------------- Design tokens --------------------- */
:root {
  --bg-page: #ffffff;
  --bg-card: #1c1c1c;
  --bg-input: #141414;

  --text-high: #ffffff;
  --text-muted: #888888;

  --stroke: #3F3F46;
  --shadow: 20px 40px 60px rgba(0, 0, 0, .35);

  --accent: #fc6b13;

  --radius-2: 12px;
  --radius-3: 20px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-high);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
}

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

/* -------------------- Layout ---------------------------- */
.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.card {
  width: 540px;
  height: 564px;
  padding: 0 72px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* -------------------- Head ------------------------------ */
.head {
  width: 100%;
  text-align: center;
  margin-top: 73px;
}

.brand {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .2px;
  margin: 0 0 8px;
}

.brand-light {
  color: var(--text-high);
}

.brand-accent {
  color: var(--accent);
}

.subtitle {
  margin: 0 0 32px;
  color: #e6e6e6;
  font-size: 16px;
  line-height: 1.5;
}

/* -------------------- Form ------------------------------ */
.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input {
  width: 396px;
  height: 48px;
  padding: 0 20px;
  margin: 0 0 24px;
  color: var(--text-high);
  background: var(--bg-input);
  border: 1px solid var(--stroke);
  border-radius: 30px;
  outline: none;
  font-size: 14px;
  transition: box-shadow .2s, border-color .2s, background-color .2s;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 107, 19, .24);
}

/* password reveal */
.password-wrapper {
  width: 396px;
  position: relative;
}

.password-wrapper .input {
  width: 100%;
  margin: 0;
}

.reveal {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #888888;
}

.reveal img,
.reveal svg {
  width: 100%;
  height: 100%;
  display: block;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 30px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform .03s ease, background-color .2s, color .2s, border-color .2s;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  width: 195px;
  background: var(--accent);
  color: #fff;
  margin: 24px 0;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.muted {
  margin: 0 0 32px;
  text-align: center;
  color: var(--accent);
  font-size: 16px;
}

.link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 252px;
}

.provider span {
  font-weight: 400;
}

.btn-outline {
  background: transparent;
  border-color: var(--stroke);
  color: #fff;
}

.btn-outline:hover {
  background: #222;
}

.provider img {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 560px) {
  .card {
    width: 100%;
    max-width: 540px;
    height: auto;
    padding: 24px;
  }

  .head {
    margin-top: 48px;
  }

  .input,
  .password-wrapper {
    width: 100%;
  }

  .providers {
    width: 100%;
  }
}