* {
  box-sizing: border-box;
}

:root {
  --desaf-black: #121212;
  --desaf-card: #1a1a1a;
  --desaf-border: #2a2a2a;
  --desaf-purple: #8b5cf6;
  --desaf-purple-dark: #7c3aed;
  --desaf-white: #ffffff;
  --desaf-muted: #a1a1aa;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(circle at top, rgba(139, 92, 246, 0.2), transparent 35%),
    #050505;

  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #111111;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(139, 92, 246, 0.08);
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);

  width: 420px;
  height: 260px;

  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.35) 0%,
    rgba(139, 92, 246, 0.18) 40%,
    transparent 75%
  );

  pointer-events: none;
}

.auth-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  z-index: 2;
}

.auth-logo-img {
  width: 280px;
  max-width: 100%;
  height: auto;
  display: block;
}

.auth-title {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #ffffff;
}

.auth-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  line-height: 1.5;
  font-size: 15px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  color: #d4d4d8;
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  height: 58px;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  color: #ffffff;
  padding: 0 18px;
  font-size: 16px;
  transition: 0.25s;
}

.auth-form input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

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

.auth-button {
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px;
  transition: 0.25s;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.35);
}

.auth-button:hover {
  background: var(--desaf-purple-dark);
  transform: translateY(-1px);
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  color: var(--desaf-muted);
}

.auth-link a {
  color: var(--desaf-white);
  font-weight: 700;
  text-decoration: none;
}

.auth-link a:hover {
  color: var(--desaf-purple);
}

.auth-alert {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ffb4bd;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
}

.auth-alert.success {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.45);
  color: #c4b5fd;
}

.install-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--desaf-muted);
  text-decoration: none;
}

.auth-powered {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--desaf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--desaf-muted);
  font-size: 13px;
}

.auth-powered img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.auth-powered a {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 480px) {
  .auth-wrapper {
    padding: 16px;
    align-items: flex-start;
    padding-top: 36px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .auth-title {
    font-size: 25px;
  }

  .auth-logo-img {
    max-width: 250px;
  }
}
