main {
  padding-top: 80px;
}


.registration {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.registration__container {
  max-width: 500px;
  width: 100%;
}

.registration__card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.registration__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316, #ea580c);
}


.registration__header {
  text-align: center;
  margin-bottom: 2rem;
}

.registration__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.registration__subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}


.registration__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__group {
  position: relative;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #1f2937;
}

.form__input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form__input::placeholder {
  color: #9ca3af;
}


.password__wrapper {
  position: relative;
}

.password__toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.password__toggle:hover {
  color: #3b82f6;
}


.form__group--checkbox {
  margin-top: 0.5rem;
}

.checkbox__label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #374151;
}

.checkbox__input {
  display: none;
}

.checkbox__custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox__input:checked+.checkbox__custom {
  background: #3b82f6;
  border-color: #3b82f6;
}

.checkbox__input:checked+.checkbox__custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__text {
  flex: 1;
}

.checkbox__link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.checkbox__link:hover {
  color: #1e40af;
  text-decoration: underline;
}


.form__submit {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.form__submit:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.form__submit:active {
  transform: translateY(0);
}

.submit__icon {
  transition: transform 0.3s ease;
}

.form__submit:hover .submit__icon {
  transform: translateX(4px);
}


.registration__footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.footer__text {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.footer__link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #1e40af;
  text-decoration: underline;
}


.registration__social {
  margin-top: 2rem;
  text-align: center;
}

.social__text {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.social__buttons {
  display: flex;
  gap: 1rem;
}

.social__button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.social__button:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.social__button--google:hover {
  border-color: #db4437;
  color: #db4437;
}

.social__button--facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
}


@media (max-width: 640px) {
  .registration {
    padding: 1rem 0.5rem;
  }

  .registration__card {
    padding: 2rem 1.5rem;
  }

  .registration__title {
    font-size: 1.75rem;
  }

  .social__buttons {
    flex-direction: column;
  }
}


.form__input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form__input.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}


.form__submit.loading {
  opacity: 0.8;
  cursor: not-allowed;
}

.form__submit.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.form__success {
  background: #f0fdf4;
  border: 1px solid #16a34a;
  color: #166534;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}


.form__error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #dc2626;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}