* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(79, 70, 229, 0.18), transparent 38%),
    #0b0d14;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrapper {
  width: 100%;
  max-width: 460px;
}

.brand {
  text-align: center;
  margin-bottom: 24px;
}

.brand-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-subtitle {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 14px;
}

.card {
  background: rgba(20, 24, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

h1 {
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 12px;
}

.description {
  text-align: center;
  color: #a8b0bf;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.status {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.status.show {
  display: block;
}

.status.success {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status.error {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.status.info {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

input {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid #34394a;
  background: #10131d;
  color: #ffffff;
  padding: 0 15px;
  font-size: 16px;
  outline: none;
  transition: 0.2s ease;
}

input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13);
}

.password-rules {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}

button,
.button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #6366f1;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 18px;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

button:hover,
.button:hover {
  opacity: 0.92;
}

button:active,
.button:active {
  transform: scale(0.99);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-secondary {
  margin-top: 12px;
  background: transparent;
  border: 1px solid #34394a;
  color: #dbe2ef;
}

.loader {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 5px auto 22px;
}

.hidden {
  display: none !important;
}

.footer {
  text-align: center;
  color: #64748b;
  font-size: 12px;
  margin-top: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .brand-title {
    font-size: 28px;
  }
}
