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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 450px;
  overflow: hidden;
  position: relative;
}

.auth-header {
  background: #000000;
  color: #ffffff;
  padding: 40px 30px 30px;
  text-align: center;
  position: relative;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.logo-subtitle {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 30px;
}

.auth-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 5px;
  margin-bottom: 20px;
}

.toggle-btn {
  flex: 1;
  padding: 12px 20px;
  background: none;
  border: none;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
}

.toggle-btn.active {
  background: #ffffff;
  color: #000000;
}

.auth-form {
  padding: 40px 30px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 16px;
  background: #ffffff;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
  color: #999999;
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #666666;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #000000;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox.checked {
  background: #000000;
  border-color: #000000;
}

.checkbox.checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label {
  font-size: 14px;
  color: #666666;
  cursor: pointer;
  line-height: 1.4;
}

.forgot-password {
  text-align: right;
  margin-bottom: 25px;
}

.forgot-link {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #666666;
}

.submit-btn {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 15px;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.submit-btn:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.divider {
  display: none;
}

.social-login {
  display: none;
}

.social-btn {
  display: none;
}

.auth-footer {
  background: #f8f9fa;
  padding: 25px 30px;
  text-align: center;
  font-size: 14px;
  color: #666666;
}

.auth-link {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #666666;
}

.form-page {
  display: none;
}

.form-page.active {
  display: block;
}

.error-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  color: #856404;
  font-size: 14px;
  display: none;
}

.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  color: #155724;
  font-size: 14px;
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-container {
      margin: 10px;
      border-radius: 20px;
  }

  .auth-header {
      padding: 30px 20px 20px;
  }

  .logo {
      font-size: 28px;
  }

  .auth-form {
      padding: 30px 20px;
  }

  .social-login {
      flex-direction: column;
  }

  .social-btn {
      width: 100%;
  }
}

/* Loading animation */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
