﻿.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-light);
  background: white;
}

.auth-header-link {
  font-size: 14px;
  color: var(--text-light);
}

.auth-header-link strong {
  color: var(--primary);
  font-weight: 600;
}

.auth-header-link:hover strong {
  color: var(--primary-dark);
}

.auth-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
  background: var(--bg-soft);
}

.auth-container {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.auth-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.progress-dot {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.3s;
}

.progress-dot.active {
  background: var(--primary);
}

.auth-back {
  background: transparent;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  margin-bottom: 16px;
  margin-left: -10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.auth-back:hover {
  background: var(--bg-section);
  color: var(--primary);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.5;
}

.role-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.role-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.role-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-icon-customer {
  background: #E6F1FB;
  color: #185FA5;
}

.role-icon-driver {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.role-content {
  flex: 1;
}

.role-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.role-desc {
  font-size: 13px;
  color: var(--text-light);
}

.role-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.role-card:hover .role-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.form-field label .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}

.form-field input,
.form-field select {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.1);
}

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

.password-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hint {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-section);
  padding: 3px 8px;
  border-radius: 999px;
  transition: all 0.2s;
}

.hint-valid {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 500;
}

.hint-valid::before {
  content: "✓ ";
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox label a {
  color: var(--primary);
  font-weight: 500;
}

.form-checkbox label a:hover {
  text-decoration: underline;
}

.form-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #E6F1FB;
  border: 1px solid #B5D4F4;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 4px 0;
}

.form-info svg {
  color: #185FA5;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0C447C;
  margin-bottom: 4px;
}

.form-info p {
  font-size: 12px;
  color: #185FA5;
  line-height: 1.5;
  margin: 0;
}

.form-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 0;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-full {
  width: 100%;
}

.success-content {
  text-align: center;
  padding: 20px 0;
}

.success-icon-big {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 12px 24px rgba(29, 158, 117, 0.25);
}

.success-content .auth-title {
  margin-bottom: 12px;
}

.success-content .auth-subtitle {
  margin-bottom: 24px;
}

.success-content strong {
  color: var(--text);
  font-weight: 600;
}

.success-info {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: left;
}

.success-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.success-info p + p {
  margin-top: 8px;
}

.success-info .small-text {
  font-size: 12px;
  color: var(--text-muted);
}

.success-info a {
  color: var(--primary);
  font-weight: 500;
}

.success-info a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-link-bottom {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-light);
}

.auth-link-bottom a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-link-bottom a:hover {
  text-decoration: underline;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--primary);
  margin-top: -8px;
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .auth-header {
    padding: 16px 20px;
  }

  .auth-header-link {
    font-size: 12px;
  }

  .auth-main {
    padding: 24px 16px;
  }

  .auth-container {
    padding: 28px 22px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

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

  .role-card {
    padding: 16px;
    gap: 12px;
  }

  .role-icon {
    width: 48px;
    height: 48px;
  }

  .role-title {
    font-size: 15px;
  }

  .role-desc {
    font-size: 12px;
  }
}

.auth-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.form-row {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 100%;
}

.form-row .form-field {
  min-width: 0;
}

.form-row .form-field input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-form .form-field input,
.auth-form .form-field select {
  width: 100%;
  box-sizing: border-box;
}
