input,
select,
textarea,
button {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  font: inherit;
  color: inherit;
  width: auto;
  vertical-align: middle;
}

/* Чекбоксы и радио: скрываем системный UI */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 1em;
  height: 1em;
  border: 1px solid currentColor;
  border-radius: 0.2em;
  display: inline-block;
  position: relative;
}

/* Опционально: свой стиль при checked */
input[type="checkbox"]:checked::before {
  content: "✔";
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.8em;
  line-height: 1em;
}

.auth__container {
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	width: min(520px, calc(100vw - 32px));
	padding: 2rem 2.5rem 2.5rem;
	margin: 1rem 0;
	border-radius: var(--radius-xl);
	background: var(--surface-color);
	border: 1px solid var(--border-color);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.auth__container::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(ellipse at 50% 0%, rgba(1, 174, 76, .16), rgba(1, 174, 76, 0) 60%);
	pointer-events: none;
}

.errors {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: .5rem;
}

.errors__item {
	padding: .65rem .9rem;
	border-radius: .6rem;
	border: 1px solid rgba(255, 107, 107, .55);
	background: rgba(255, 107, 107, .12);
	color: #ff8a8a;
	font-weight: 600;
}

.errors__item p {
	margin: 0;
	color: inherit;
}

.errors__item--success,
.errors__item--info {
	border-color: rgba(1, 174, 76, .55);
	background: rgba(1, 174, 76, .12);
	color: #4fdc8c;
}

.errors__item--warning {
	border-color: rgba(255, 193, 7, .55);
	background: rgba(255, 193, 7, .12);
	color: #ffd04d;
}

.auth_logo {
	display: block;
	width: 20rem;
	margin: 0 auto;
	filter: brightness(1.5) invert(60%);
	transition: all 1s;
}

.auth_logo:hover {
	filter: brightness(1.3) drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.8));
	/* box-shadow: 0px 0px 40px rgba(255, 255, 255, 0.8); */
}

.auth__title {
	text-align: center;
	margin-bottom: 1rem;
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
}

.auth-form {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 1rem;
	margin-top: 1rem;
}

.captcha_img {
	width: 225px;
	height: 50px;
}

.auth__btn {
	display: block;
	width: 100%;
	height: 52px;
	margin: .75rem 0 0;
	border: 0;
	border-radius: 999px;
	background: var(--accent-gradient);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}

.auth__btn:hover {
	filter: brightness(1.1) drop-shadow(0 0 14px rgba(1, 174, 76, .45));
}

.auth__input {
	height: 3.25rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-color);
	padding: 0 16px;
	overflow: hidden;
	transition: all .2s cubic-bezier(.9, 0, .3, .9);
	text-align: start;
	font-size: clamp(1.15rem, 1.6vh, 1.4rem);
}

.auth__input:hover, .auth__input:active, .auth__input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}


.sign__in-text {
	font-size: clamp(1.05rem, 1.6vh, 1.3rem);
}

.sign__up-link {
	font-size: clamp(1.05rem, 1.6vh, 1.3rem);
	color: var(--text-color-emphasis);
}
/* галочки соглашения и согласия на обработку ПД (регистрация) */
.auth__check {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	font-size: clamp(.95rem, 1.4vh, 1.1rem);
	line-height: 1.4;
	color: var(--text-color-secondary, rgba(255, 255, 255, .7));
	cursor: pointer;
	text-align: start;
}

.auth__check input[type="checkbox"] {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: .15rem;
	border-radius: .3rem;
	border-color: rgba(255, 255, 255, .35);
	cursor: pointer;
}

.auth__check input[type="checkbox"]:checked {
	background: rgb(1, 174, 76);
	border-color: rgb(1, 174, 76);
}

.auth__check input[type="checkbox"]:checked::before {
	width: 100%;
	text-align: center;
	color: #fff;
	font-size: .8rem;
	line-height: 1.1rem;
}

.auth__check input[type="checkbox"]:focus-visible {
	outline: 2px solid rgba(1, 174, 76, .7);
	outline-offset: 2px;
}

.auth__check a {
	color: var(--text-color-emphasis, #fff);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* «Проверьте почту» после регистрации / входа без подтверждения */
.auth-check {
	max-width: 30rem;
	margin: 0 auto 1.5rem;
	text-align: center;
	line-height: 1.5;
}
.auth-check p { margin: 0 0 .75rem; }
.auth-check b { color: #3ddc97; word-break: break-all; }
.auth-check__faint { opacity: .7; font-size: .9em; }
.auth-check__err { color: #ff6b6b; }

.auth__hint {
	margin: -.25rem 0 0;
	color: #ff6b6b;
	font-size: .95rem;
	text-align: start;
}
