@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800;900&display=swap');

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

body {
  font-family: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  background: #1e1f22;
  color: #dbdee1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* Background */
.auth-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e1f22 0%, #2b2d31 60%, #1e1f22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}
.auth-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(#5865f2, transparent);
  top: -200px; left: -100px;
  animation: floatBlob 9s ease-in-out infinite;
}
.auth-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(#57f287, transparent);
  bottom: -100px; right: -100px;
  animation: floatBlob 12s ease-in-out infinite reverse;
}
.auth-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(#eb459e, transparent);
  top: 40%; right: 20%;
  animation: floatBlob 7s ease-in-out infinite 2s;
}
@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.04); }
}

/* Container */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  padding: 16px;
}

/* Card */
.auth-card {
  background: #2b2d31;
  border-radius: 16px;
  padding: 32px 40px 28px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
  animation: cardIn 0.3s ease-out;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-logo-icon {
  width: 52px; height: 52px;
  background: #5865f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}
.auth-logo-text {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

/* Headings */
.auth-card h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #f2f3f5;
  margin-bottom: 6px;
}
.auth-card .subtitle {
  text-align: center;
  color: #949ba4;
  font-size: 15px;
  margin-bottom: 20px;
}

/* Error box */
.auth-error {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid #ed4245;
  border-radius: 6px;
  padding: 10px 14px;
  color: #ed4245;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Form */
.auth-form { display: flex; flex-direction: column; }

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

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #b5bac1;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 12px 14px;
  color: #dbdee1;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}
.form-group input:focus {
  border-color: #5865f2;
  background: #16171a;
}
.form-group input::placeholder { color: #4f545c; }

/* Button */
.auth-btn {
  width: 100%;
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.auth-btn:hover {
  background: #4752c4;
  box-shadow: 0 4px 20px rgba(88,101,242,0.4);
}
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Switch link */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #949ba4;
}
.auth-switch a { color: #00a8fc; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
