/* Signup Page Styles - Figma Design */

.signup-page {
  background: #1a1a1a;
  color: #ffffff;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  margin: 0;
}

.signup-page .app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.signup-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 2rem auto;
  padding: 3rem 2.5rem;
  background: #212121;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Braiins Logo (in signup header, not footer) */
.signup-wrapper .braiins-logo {
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.logo-braiins {
  color: #ffffff;
  margin-right: 0.5rem;
}

.logo-hash {
  background: #ffffff;
  color: #1a1a1a;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

/* Signup Content */
.signup-content {
  margin-bottom: 2rem;
}

.signup-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 2rem 0;
}

.title-light {
  font-weight: 400;
  color: #999999;
}

/* Form Styles */
.signup-form-new {
  max-width: 100%;
}

.form-field {
  margin-bottom: 2.5rem;
}

.field-label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #cccccc;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.field-input {
  width: 100%;
  background: #2a2a2a;
  border: none;
  border-bottom: 2px solid #3a3a3a;
  color: #888888;
  font-size: 1.125rem;
  padding: 1rem 0 1rem 1.5ch;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.field-input::placeholder {
  color: #666666;
}

.field-input:focus {
  border-bottom-color: #6B50FF;
  color: #ffffff;
}

.field-input:disabled {
  background: #222222;
  border-bottom-color: #2a2a2a;
  color: #555555;
  cursor: not-allowed;
}

/* Field with Button (Telegram Chat ID) */
.field-with-button {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.field-with-action {
  flex: 1;
}

.btn-get-chatid {
  background: #6B50FF;
  color: #ffffff;
  border: none;
  border-bottom: 2px solid #6B50FF;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  height: auto;
}

.btn-get-chatid:hover {
  background: #7d5fff;
  border-bottom-color: #7d5fff;
}

.btn-get-chatid:active {
  background: #5a3fe6;
}

.telegram-icon {
  width: 20px;
  height: 20px;
}

/* Field Hint */
.field-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #888888;
  line-height: 1.5;
}

.field-hint a {
  color: #6B50FF;
  text-decoration: none;
}

.field-hint a:hover {
  text-decoration: underline;
}

/* Field with Tooltip (Account Name) */
.field-with-tooltip {
  position: relative;
}

.field-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  background: #ffffff;
  color: #1a1a1a;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 400px;
  z-index: 10;
  font-size: 0.875rem;
  line-height: 1.4;
}

.tooltip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tooltip-text {
  flex: 1;
}

/* Continue Button */
.btn-continue {
  width: 100%;
  background: #6B50FF;
  color: #ffffff;
  border: none;
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  font-weight: 400;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.2s ease;
  margin-top: 3rem;
}

.btn-continue:hover:not(:disabled) {
  background: #7d5fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 80, 255, 0.3);
}

.btn-continue:active:not(:disabled) {
  transform: translateY(0);
}

.btn-continue:disabled {
  background: #3a3a3a;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

.arrow-icon {
  width: 20px;
  height: 20px;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B50FF;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #7d5fff;
  gap: 0.75rem;
}

.back-arrow {
  width: 20px;
  height: 20px;
}

/* Field States */
.field-input.error {
  border-bottom-color: #ef4444;
}

.field-input.success {
  border-bottom-color: #22c55e;
}

.field-input.loading {
  border-bottom-color: #f59e0b;
}

.field-error {
  display: block;
  margin-top: 0.75rem;
  color: #ef4444;
  font-size: 0.875rem;
  line-height: 1.4;
}

.field-success {
  display: block;
  margin-top: 0.75rem;
  color: #22c55e;
  font-size: 0.875rem;
  line-height: 1.4;
}

.field-loading {
  display: block;
  margin-top: 0.75rem;
  color: #f59e0b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.api-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

/* Signup Unavailable State */
.signup-unavailable {
  width: 100%;
  max-width: 680px;
  margin: 2rem auto;
  padding: 3rem 2.5rem;
  background: #212121;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.unavailable-content {
  max-width: 500px;
  margin: 0 auto;
}

.unavailable-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
  color: #ffffff;
}

.unavailable-message {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #cccccc;
  margin: 0 0 2.5rem 0;
}

.btn-contact-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #525252;
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 4px;
}

.btn-contact-support:hover {
  background: #626262;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .signup-wrapper {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .signup-title {
    font-size: 1.5rem;
  }

  .braiins-logo {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .field-with-button {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-get-chatid {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .field-tooltip {
    position: static;
    margin-top: 0.75rem;
  }

  .signup-unavailable {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .unavailable-title {
    font-size: 1.5rem;
  }

  .unavailable-message {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .signup-wrapper {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
  }

  .signup-title {
    font-size: 1.25rem;
  }

  .braiins-logo {
    font-size: 0.875rem;
  }

  .logo-hash {
    padding: 0.2rem 0.5rem;
  }

  .field-input {
    font-size: 1rem;
  }

  .btn-continue {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }

  .signup-unavailable {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
  }

  .unavailable-title {
    font-size: 1.25rem;
  }

  .unavailable-message {
    font-size: 0.9375rem;
  }

  .btn-contact-support {
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
  }
}

/* Confirmation Page Styles */
.confirmation-message {
  text-align: left;
  margin: 2rem 0;
}

.email-icon {
  margin: 0 auto 1.5rem;
  color: #6B50FF;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #cccccc;
  margin: 0 0 2rem 0;
}

.confirmation-text strong {
  color: #ffffff;
  font-weight: 600;
}

.resend-section {
  margin-top: 2rem;
}

.resend-text {
  font-size: 0.9375rem;
  color: #999999;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.resend-link {
  color: #6B50FF;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.resend-link:hover:not(.disabled):not(.loading) {
  color: #7d5fff;
  text-decoration: underline;
}

.resend-link.disabled,
.resend-link.loading {
  color: #666666;
  cursor: not-allowed;
  text-decoration: none;
}

.resend-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  display: none;
}

.resend-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.resend-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.resend-message.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid #f59e0b;
  color: #f59e0b;
}

/* Account Details (Collapsed) */
.account-details {
  margin-top: 3rem;
  border-top: 1px solid #3a3a3a;
  padding-top: 2rem;
}

.details-toggle {
  cursor: pointer;
  color: #6B50FF;
  font-size: 1rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.details-toggle:hover {
  color: #7d5fff;
}

.details-toggle::marker,
.details-toggle::-webkit-details-marker {
  display: none;
}

.details-toggle::before {
  content: '▶';
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.account-details[open] .details-toggle::before {
  transform: rotate(90deg);
}

.details-content {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.info-item {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  color: #888888;
  font-weight: 400;
}

.info-value {
  font-size: 1rem;
  color: #ffffff;
  word-break: break-all;
}

.address-value,
.token-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
}

.copyable-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn-small,
.show-btn-small {
  background: transparent;
  border: 1px solid #3a3a3a;
  color: #888888;
  padding: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.copy-btn-small:hover,
.show-btn-small:hover {
  background: #2a2a2a;
  border-color: #6B50FF;
  color: #6B50FF;
}

.copy-btn-small:active,
.show-btn-small:active {
  transform: scale(0.95);
}

.masked-token {
  letter-spacing: 0.05em;
}

/* Responsive - Confirmation Page */
@media (max-width: 768px) {
  .email-icon {
    width: 48px;
    height: 48px;
  }

  .confirmation-text {
    font-size: 1rem;
  }

  .info-item {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .confirmation-text {
    font-size: 0.9375rem;
  }

  .resend-text {
    font-size: 0.875rem;
  }
}

/* Terms & Conditions Checkbox */
.terms-field {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.6;
}

.terms-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: #6B50FF;
}

.checkbox-text {
  color: #C6C6C6;
  user-select: none;
}

.checkbox-text a {
  color: #6B50FF;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.checkbox-text a:hover {
  border-bottom-color: #6B50FF;
}

.checkbox-text a:focus {
  outline: 2px solid #6B50FF;
  outline-offset: 2px;
  border-radius: 2px;
}
