

:root {
  --auth-accent: #f8c8dc;
  --auth-accent-dim: rgba(248, 200, 220, 0.15);
  --auth-accent-glow: rgba(248, 200, 220, 0.22);
}

.auth-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 0.5rem 2rem;
  flex: 1;
}

@media (min-width: 640px) {
  .auth-main {
    padding-top: 6rem;
    padding-left: 0;
    padding-right: 0;
  }
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
  padding: 1.75rem 1.5rem;
  border-top: 2px solid var(--auth-accent);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(248, 200, 220, 0.08);
  animation: auth-in 0.35s ease-out;
}

@media (min-width: 640px) {
  .auth-card {
    padding: 2.5rem 2.75rem;
  }
}

@keyframes auth-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card-head {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card-head::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--auth-accent), transparent);
  opacity: 0.6;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .auth-title {
    font-size: 1.875rem;
  }
}

.auth-subtitle {
  margin-top: 0.5rem;
  font-size: 11px;
  color: var(--gs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gs-text-muted);
  letter-spacing: 0.06em;
}

.auth-field label .required {
  color: var(--auth-accent);
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  background: var(--gs-bg);
  border: 1px solid var(--gs-border);
  padding: 0.8rem 0.9rem;
  font-size: 0.9375rem;
  border-radius: var(--gs-radius);
  outline: none;
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap .auth-input {
  padding-right: 2.75rem;
}

.auth-input::placeholder {
  color: rgba(140, 144, 154, 0.65);
}

.auth-input:hover {
  border-color: rgba(248, 200, 220, 0.35);
}

.auth-input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-accent-dim);
}

.auth-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.2rem;
  color: var(--gs-text-muted);
  transition: color 0.2s;
  line-height: 0;
}

.auth-toggle:hover {
  color: #fff;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.auth-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-check-box {
  width: 1rem;
  height: 1rem;
  border-radius: var(--gs-radius);
  border: 1px solid var(--gs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.auth-check input:checked + .auth-check-box {
  background: var(--auth-accent);
  border-color: var(--auth-accent);
}

.auth-check-box svg {
  opacity: 0;
  color: #000;
  stroke-width: 3;
}

.auth-check input:checked + .auth-check-box svg {
  opacity: 1;
}

.auth-check-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--gs-text-muted);
  transition: color 0.2s;
  user-select: none;
}

.auth-check:hover .auth-check-text {
  color: rgba(255, 255, 255, 0.8);
}

.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1rem;
  background: var(--auth-accent);
  color: #0c0d10;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--gs-radius);
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 0 18px var(--auth-accent-glow);
}

.auth-submit:hover {
  opacity: 0.92;
}

.auth-submit:active {
  transform: scale(0.99);
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-error {
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: #e07070;
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.25);
  border-radius: 0.375rem;
  text-align: center;
}

.auth-switch {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--gs-text-muted);
}

.auth-switch a,
.auth-switch button {
  color: var(--auth-accent);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-transform: inherit;
}

.auth-switch a:hover,
.auth-switch button:hover {
  text-decoration: underline;
}

.auth-btn-active {
  background: rgba(248, 200, 220, 0.12) !important;
  color: var(--auth-accent) !important;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  opacity: 0.9;
}
