.sgc-auth {
  display: flex;
  justify-content: center;
  padding: 24px 12px;
}

.sgc-auth__card {
  width: 100%;
  max-width: 520px;
  background: #0a0a0ab3;
  border-radius: 16px;
  padding: 36px 40px 28px;
  box-sizing: border-box;
  font-size: 18px;
  color: #f3f3f3;
}

.sgc-auth__notice {
  width: 100%;
  max-width: 520px;
  margin: 0 0 14px;
  font-size: 18px;
}

.sgc-auth__field {
  margin-bottom: 22px;
}

.sgc-auth__field--float {
  position: relative;
  padding-top: 12px;
}

.sgc-auth__field.is-error input {
  border-bottom-color: rgba(255, 180, 180, 0.9);
}

.sgc-auth__field--float label {
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 160ms ease, top 160ms ease, color 160ms ease;
}

.sgc-auth__field input[type="email"],
.sgc-auth__field input[type="text"],
.sgc-auth__field input[type="password"],
.sgc-auth__field input[type="search"],
.sgc-auth__field input[type="tel"],
.sgc-auth__field input[type="url"],
.sgc-auth__field input[type="number"],
.sgc-auth__field input[type="text"],
.sgc-auth__field input[type="password"],
.sgc-auth__field input[type="email"] {
  width: 100%;
  background: transparent;
  color: #f3f3f3;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 22px 44px 10px 0;
  outline: none;
  box-shadow: none;
}

.sgc-auth__field--float input::placeholder {
  color: transparent;
}

.sgc-auth__field--float input:focus + label,
.sgc-auth__field--float input:not(:placeholder-shown) + label {
  top: 6px;
  transform: scale(0.85);
  color: #34e000;
}

.sgc-auth__field input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.sgc-auth__field--password {
  position: relative;
}

.sgc-auth__toggle {
  position: absolute;
  right: 0;
  top: 34px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 0;
  cursor: pointer;
}

@supports selector(input:-webkit-autofill) {
  .sgc-auth__field--float input:-webkit-autofill + label {
    top: 6px;
    transform: scale(0.85);
  }
}

.sgc-auth__toggle:hover {
  color: rgba(255, 255, 255, 0.95);
}

.sgc-auth__hint {
  margin-top: 6px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
}

.sgc-auth__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  color: #f3f3f3;
  font-size: 18px;
}

.sgc-auth__check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 6px;
  border: 2px solid rgba(52, 224, 0, 0.85);
  background: rgba(10, 10, 10, 0.45);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}

.sgc-auth__check input[type="checkbox"]:focus {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 0 0 3px rgba(52, 224, 0, 0.25);
}

.sgc-auth__check input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
  clip-path: polygon(14% 44%, 0 62%, 38% 100%, 100% 24%, 82% 8%, 36% 62%);
  background: #0c1700;
}

.sgc-auth__check input[type="checkbox"]:checked {
  background: linear-gradient(180deg, #7bff2a 0%, #34e000 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 10px 24px rgba(36, 255, 0, 0.10),
    0 0 18px rgba(36, 255, 0, 0.18);
}

.sgc-auth__check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.sgc-auth__check a {
  color: #f3f3f3;
  text-decoration: underline;
}

.sgc-auth__message {
  display: none;
  margin: 0 0 14px;
  font-size: 18px;
}

.sgc-auth__message[data-type="error"] {
  display: block;
  color: #ffb4b4;
}

.sgc-auth__message[data-type="success"] {
  display: block;
  color: #b9ffb9;
}

.sgc-auth__submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #7bff2a 0%, #34e000 100%);
  color: #000!important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 26px;
  font-weight: 900;
  position: relative;
  z-index: 0;
  box-shadow:
    0 0 0 1px rgba(10, 30, 0, 0.35) inset,
    0 10px 30px rgba(36, 255, 0, 0.18),
    0 0 26px rgba(36, 255, 0, 0.22);
  overflow: visible;
}

.sgc-auth__submit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  animation: sgc-auth-pulse2 1.3s infinite;
}

.sgc-auth__submitText {
  line-height: 1;
}

.sgc-auth__submitIcon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.sgc-auth__submitIcon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.sgc-auth__submit:hover {
  filter: brightness(1.03);
}

.sgc-auth__submit:active {
  transform: translateY(1px);
}

.sgc-auth__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sgc-auth__submit:disabled {
  animation: none;
}

.sgc-auth__submit:disabled::after {
  animation: none;
}

@keyframes sgc-auth-pulse2 {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 224, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 25px rgba(52, 224, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 224, 0, 0);
  }
}

@media (max-width: 480px) {
  .sgc-auth__card {
    padding: 28px 20px 22px;
    font-size: 16px;
  }

  .sgc-auth__field--float label,
  .sgc-auth__hint,
  .sgc-auth__check,
  .sgc-auth__message {
    font-size: 16px;
  }

  .sgc-auth__fieldError {
    font-size: 16px;
  }
  .sgc-auth__submit {
    font-size: 21px;
  }

  .sgc-auth__submitIcon {
    width: 32px;
    height: 32px;
  }
}
