/**
 * Registration Page Additional Styles - Based on Figma Design
 * Дополнительные стили для страницы регистрации на основе дизайна Figma
 *
 * @package App
 * @version 1.0.0
 */

/* Back Button */
.auth-back-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  border-radius: 41px;
  /* background: var(--auth-white); */
  padding: 12px 16px;
  overflow: hidden;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.3s ease;
  color: var(--auth-text-primary);
}

.auth-back-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--auth-text-primary);
}

.auth-back-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  overflow: hidden;
}

.auth-back-text {
  flex-shrink: 0;
  line-height: 24px;
  letter-spacing: 0;
  font-family: var(--auth-font-family-secondary);
  font-size: var(--auth-body-size);
  font-weight: 500;
  margin: 0;
}

/* Registration Form Specific Styles */

/* Registration Title */
.auth-card .auth-card-title {
  text-align: center;
}

/* Form Container */
.auth-form-new {
  row-gap: 16px;
}

/* Registration Input Field Containers */
.auth-field-group.input, 
.auth-field-group.input2, 
.auth-field-group.input3 {
  row-gap: 4px;
}

/* Registration Field Labels */
.auth-field-group .field-label {
  line-height: 20px;
  letter-spacing: 0;
  color: var(--auth-text-primary);
  font-family: var(--auth-font-family-secondary);
  font-size: var(--auth-small-size);
  margin: 0;
}

/* Error states */
.auth-field-group.error .auth-input-wrapper,
.auth-field-group.error .auth-password-wrapper {
  border-color: #cc070b;
}

/* Error messages */
.auth-field-group .text6 {
  min-height: 16px;
  line-height: 16px;
  color: #cc070b;
  font-size: 13px;
  margin: 0;
}

/* Error Icon for Email Field */
.auth-field-group .error-icon {
  width: 24px;
  height: 24px;
  display: none;
}

/* Registration Submit Button */
.auth-btn.button2 {
  background: var(--auth-primary);
  color: var(--auth-white);
  margin-top: 8px;
}

.auth-btn.button2:hover:not(:disabled) {
  background: #964a05;
}

.auth-btn.button2:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Registration Privacy Checkbox */
.auth-checkbox.registration-privacy {
  align-items: flex-start;
  margin-top: 8px;
}

.auth-checkbox.registration-privacy .checkbox-icon {
  margin-top: 2px;
}

/* Password Strength Indicator */
.auth-password-strength {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  background: #f8f9ff;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-small);
  row-gap: 8px;
}

/* Password Strength Bar */
.auth-password-strength-bar {
  width: 100%;
  height: 6px;
  background: var(--auth-border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.auth-password-strength-fill {
  height: 100%;
  width: 0%;
  background: #cc070b;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Password Strength Levels */
.auth-password-strength[data-strength="weak"] .auth-password-strength-fill,
.auth-password-strength.auth-password-strength--weak .auth-password-strength-fill,
.auth-password-strength.auth-password-strength--very-weak .auth-password-strength-fill {
  width: 25%;
  background: #cc070b;
}

.auth-password-strength[data-strength="fair"] .auth-password-strength-fill,
.auth-password-strength.auth-password-strength--medium .auth-password-strength-fill {
  width: 50%;
  background: #ff9800;
}

.auth-password-strength[data-strength="good"] .auth-password-strength-fill,
.auth-password-strength.auth-password-strength--strong .auth-password-strength-fill {
  width: 75%;
  background: #2196f3;
}

.auth-password-strength[data-strength="strong"] .auth-password-strength-fill,
.auth-password-strength.auth-password-strength--very-strong .auth-password-strength-fill {
  width: 100%;
  background: #4caf50;
}

/* Password Strength Text Colors */
.auth-password-strength-text {
  font-family: var(--auth-font-family-secondary);
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-text-secondary);
  text-align: center;
  margin: 0;
}

.auth-password-strength[data-strength="weak"] .auth-password-strength-text,
.auth-password-strength.auth-password-strength--weak .auth-password-strength-text,
.auth-password-strength.auth-password-strength--very-weak .auth-password-strength-text {
  color: #cc070b;
}

.auth-password-strength[data-strength="fair"] .auth-password-strength-text,
.auth-password-strength.auth-password-strength--medium .auth-password-strength-text {
  color: #ff9800;
}

.auth-password-strength[data-strength="good"] .auth-password-strength-text,
.auth-password-strength.auth-password-strength--strong .auth-password-strength-text {
  color: #2196f3;
}

.auth-password-strength[data-strength="strong"] .auth-password-strength-text,
.auth-password-strength.auth-password-strength--very-strong .auth-password-strength-text {
  color: #4caf50;
}

/* Password Requirements List */
.auth-password-requirements {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}

.auth-requirement {
  display: flex;
  align-items: center;
  column-gap: 8px;
  font-family: var(--auth-font-family-secondary);
  font-size: 12px;
  color: var(--auth-text-secondary);
}

.auth-requirement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--auth-border);
  position: relative;
  flex-shrink: 0;
}

.auth-requirement-icon::after {
  content: '✗';
  color: #cc070b;
  font-size: 10px;
  font-weight: bold;
}

/* Valid requirement state */
.auth-requirement.auth-requirement--met {
  color: #4caf50;
}

.auth-requirement.auth-requirement--met .auth-requirement-icon {
  background: #4caf50;
}

.auth-requirement.auth-requirement--met .auth-requirement-icon::after {
  content: '✓';
  color: white;
  font-size: 10px;
  font-weight: bold;
}

/* Responsive Design for Registration Page */
@media (max-width: 768px) {
  .auth-content-wrapper {
    margin: 24px auto 0;
    padding: 0 10px;
  }

  .auth-password-strength {
    padding: 8px;
  }

  .auth-password-requirements {
    row-gap: 6px;
  }

  .auth-requirement {
    font-size: 11px;
  }
}