/* Form Components - Futuristic Theme */

/* Auth Container */
.auth-container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--accent), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  z-index: -1;
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: black;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-help {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control--modal {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  font-size: 1.1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.form-control--modal:focus {
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.form-control--confirmation:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.form-control--unlock:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Checkbox Groups */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

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

.checkbox-group label {
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
}

/* Submit Buttons */
.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: black;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.submit-btn--modal {
  padding: 1.25rem 2rem;
  border-radius: 16px;
}

.submit-btn--confirmation {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.submit-btn--unlock {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
}

.submit-btn--password {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.submit-btn--modal:hover {
  transform: translateY(-3px);
}

.submit-btn--confirmation:hover {
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.4);
}

.submit-btn--unlock:hover {
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}

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

.submit-btn--modal:active {
  transform: translateY(-1px);
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
  display: inline-block;
}

.auth-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password {
  text-align: center;
  margin: 1rem 0;
}

.forgot-password a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Back Link */
.back-link {
  position: fixed;
  top: 2rem;
  left: 2rem;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  z-index: 100;
}

.back-link:hover {
  color: var(--primary-hover);
  transform: translateX(-5px);
}

/* Message Styles */
.error-messages {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--error);
}

.error-messages--modal {
  border-radius: 12px;
  animation: shake 0.5s ease;
}

.error-messages ul {
  margin: 0;
  padding-left: 1rem;
}

.error-messages li {
  margin: 0.25rem 0;
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--success);
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .auth-container {
    margin: 1rem auto;
  }

  .auth-card {
    padding: 2rem;
  }

  .auth-title {
    font-size: 2rem;
  }

  .back-link {
    top: 1rem;
    left: 1rem;
  }
}
