/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.form-wrapper {
  padding: 40px 36px;
}

h1 {
  text-align: center;
  margin-bottom: 12px;
  font-size: 2.1rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

.subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 36px;
  font-size: 0.96rem;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 32px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 6px;
  gap: 6px;
}

.tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  user-select: none;
}

.tab.active {
  background: white;
  color: #4f46e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Form fields */
.form-group {
  position: relative;
  margin-bottom: 26px;
}

.form-group input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: white;
}

.form-group label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -8px;
  left: 18px;
  font-size: 0.78rem;
  color: #6366f1;
  background: white;
  padding: 0 6px;
}

.icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.form-group input:focus ~ .icon {
  color: #6366f1;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.footer-text {
  text-align: center;
  margin-top: 18px;
  color: #64748b;
  font-size: 0.92rem;
}

.footer-text a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-content {
  animation: fadeIn 0.6s ease-out;
}

.hidden {
  display: none;
}

.modal.hidden {
  display: none !important;
}

.modal {
  animation: fadeIn 0.3s ease;
}