/* Company Signup Page Styles */

/* Variables */
:root {
  --primary-green: #2A913F;
  --primary-green-dark: #1e7a2e;
  --primary-green-light: #4CAF50;
  --accent-orange: #E76F34;
  --text-primary: #22364D;
  --text-secondary: #586D85;
  --text-light: #8494A7;
  --bg-light: #F8FAFB;
  --bg-gradient-start: #FEF9F7;
  --bg-gradient-end: #E8EEF6;
  --border-color: #DFE5EC;
  --white: #ffffff;
  --error-color: #EF4444;
  --error-bg: #FEE2E2;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Base Styles */
.signup-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.signup-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Header */
.signup-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  animation: fadeIn 0.5s ease-out;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.signup-logo {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-help {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.help-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-login-link {
  padding: 10px 24px;
  background-color: transparent;
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-login-link:hover {
  background-color: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
}

/* Main Content */
.signup-main {
  flex: 1;
  padding: 3rem 0;
}

.signup-layout {
  display: flex;
  justify-content: center;
  align-items: start;
}

/* Form Section */
.signup-form-section {
  background-color: var(--white);
  border-radius: 25px;
  border: 1px solid #D7E3ED;
  padding: 35px 47px;
  box-shadow: none;
  animation: fadeInUp 0.6s ease-out;
  width: 100%;
  max-width: 700px;
}

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

.form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0 0 28px 0;
  line-height: 36px;
  text-align: center;
}

.form-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 1.5rem 0;
  text-align: center;
}

/* Alert */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  animation: slideInUp 0.4s ease-out;
}

.alert-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

.alert-error ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.alert-error li {
  margin-top: 0.25rem;
}

/* Form Steps */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.step-indicator.active {
  opacity: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.step-indicator.active .step-number {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
  border-color: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(42, 145, 63, 0.3);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.step-line {
  width: 100px;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 1rem;
  margin-bottom: 20px;
}

/* Form Step */
.form-step {
  animation: slideInUp 0.5s ease-out;
}

/* Form Groups */
.form-group {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #586D85;
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: '*';
  color: var(--error-color);
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  color: #111827;
  background-color: #F6F7F8;
  border: 1px solid #D7E3ED;
  border-radius: 15px;
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 400;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23586D85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 45px;
  cursor: pointer;
}

.form-select:hover {
  border-color: #9ca3af;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(42, 145, 63, 0.1);
}

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

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 13px;
  color: var(--text-light);
}

/* Sectors Checkboxes */
.sectors-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.sector-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 15px;
  background-color: #F6F7F8;
  border: 1px solid #D7E3ED;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sector-checkbox-label:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.sector-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-green);
}

.sector-checkbox-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Checkbox Group */
.checkbox-group {
  margin: 2rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-green);
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.checkbox-text .link {
  color: var(--primary-green);
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-text .link:hover {
  color: var(--primary-green-dark);
}

/* Form Actions */
.form-actions {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.form-actions.two-buttons {
  display: flex;
  gap: 1rem;
}

.btn-next,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 9px 15px;
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  width: 100%;
  margin-top: 10px;
}

.btn-next:hover,
.btn-submit:hover {
  background-color: #094561;
  transform: scale(0.98);
  box-shadow: none;
}

.btn-next:active,
.btn-submit:active {
  transform: scale(0.98);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 9px 15px;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid #D7E3ED;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  margin-top: 10px;
}

.btn-back:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.btn-submit {
  flex: 2;
}

.btn-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.btn-back .btn-icon {
  filter: none;
}


/* Footer */
.signup-footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Design */

@media (max-width: 768px) {
  .signup-container {
    padding: 0 1rem;
  }

  .header-help {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
  }

  .help-text {
    display: none;
  }

  .signup-main {
    padding: 2rem 0;
  }

  .signup-form-section {
    padding: 32px 28px;
    border-radius: 20px;
  }

  .form-title {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 24px;
  }

  .form-description {
    font-size: 13px;
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: 12px;
  }

  .form-select {
    background-position: right 12px center;
    padding-right: 40px;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sectors-checkboxes {
    grid-template-columns: 1fr;
  }

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

  .btn-submit,
  .btn-back {
    flex: 1;
  }

  .form-steps {
    margin-bottom: 2rem;
  }

  .step-line {
    width: 60px;
  }

  .step-label {
    font-size: 11px;
  }
}

