/**
 * MCP Gateway - Registration Page Styles
 * Based on contact page design system
 */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-3xl);
}

.hero-content {
  width: 100%;
  max-width: 600px;
}

/* Card */
.register-card {
  background: rgba(30, 32, 36, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl, 28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.light-theme .register-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header */
.register-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.register-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.register-icon .material-symbols-rounded {
  font-size: 36px;
  color: #0e1117;
}

.light-theme .register-icon .material-symbols-rounded {
  color: #ffffff;
}

.register-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.register-subtitle {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1rem;
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--md-sys-color-on-surface);
}

.form-label-optional {
  color: var(--md-sys-color-on-surface-variant);
  font-weight: normal;
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-md);
  color: var(--md-sys-color-on-surface);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
}

.form-input::placeholder {
  color: var(--md-sys-color-outline);
}

textarea.form-input {
  min-height: 80px;
  resize: vertical;
}

/* Code Input */
.code-input {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 12px;
  font-family: monospace;
  font-weight: 600;
  padding: var(--space-lg);
}

/* Turnstile */
.turnstile-container {
  margin-bottom: var(--space-lg);
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* Form Note */
.form-note {
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8rem;
  margin-top: var(--space-lg);
}

/* Toast Notifications */
.toast {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

.toast-error {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.toast-info {
  background: rgba(33, 150, 243, 0.15);
  color: #2196F3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Success */
.success-message {
  text-align: center;
  padding: var(--space-xl);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--md-sys-color-success, #7DD67D);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.success-icon .material-symbols-rounded {
  font-size: 40px;
  color: #003921;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-text {
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: var(--space-xl);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(100px + var(--space-2xl));
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(70px + var(--space-lg)) var(--space-md) var(--space-lg);
  }

  .register-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg, 24px);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
    min-width: unset;
  }

  .code-input {
    font-size: 1.5rem;
    letter-spacing: 8px;
  }

  .turnstile-container {
    overflow: hidden;
  }
}
