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

:root {
  --primary: #3b82f6;        
  --secondary: #2563eb;      
  
  --background: #0f172a;     
  --card-bg: #334155;        
  
  --text-primary: #ffffff;  
  --text-secondary: #cbd5e1;
  
  --border: #475569;        
  --focus-border: #3b82f6;

  --error: #ef4444;
  --success: #22c55e;
}


body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 20px;
}

.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('https://mgx-backend-cdn.metadl.com/generate/images/701466/2026-01-04/199fdec7-a525-4b36-a82d-4079238b9e7b.png'); */
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  animation: fadeInUp .5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.illustration img {
  max-width: 200px;
  height: auto;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.auth-form { margin-top: 24px; }

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

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
  transition: all .3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}

input.error { border-color: var(--error); }

.error-message {
  display: block;
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
  min-height: 18px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
}

.link:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(99,102,241,.50);
}

.btn-primary:active { transform: translateY(0); }

.btn-full { width: 100%; }

.form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.success-message {
  padding: 12px 16px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .container { padding: 12px; }
  .auth-card { padding: 28px 20px; }
  h1 { font-size: 28px; }
  .illustration img { max-width: 150px; }
}

.link-disabled{
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}


/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }
* { scrollbar-width: thin; scrollbar-color: var(--primary) var(--background); }
