@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body {
    background: #101010;
    font-family: "Philosopher", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    /*width: 400px;*/
    /*height: 520px;*/
    height: 100vh;
    margin: auto;
    position: relative;
}

iframe body {
	width: auto;
}

h1 {
    color: #FFD789;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    text-align: center;
}

form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

    input {
        font-family: "Philosopher", sans-serif;
        width: 100%;
        font-size: 0.875rem;
        background-color: transparent;
        padding: 0.625rem 0.9375rem;
        color: #FFFFFF;
        border: 0.125rem solid #353535;
        border-radius: 1.5625rem;
        -webkit-transition: .3s;
        transition: .3s;
        outline: none;

				&::placeholder {
					text-transform: uppercase;
				}
    }

    input:placeholder-shown {
        border: 0.125rem solid #353535;
    }

    input:active {
        border: 0.125rem solid #353535;
    }

    input:-webkit-autofill{
        -webkit-text-fill-color: #FFFFFF !important;
    }
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        transition: background-color 5000s ease-in-out 0s;
    }

		.auth-header {
			position: relative;
			display: flex;
			justify-content: center;
			align-items: center;
			width: 100%;
		}

		.auth-header__title {
			text-transform: uppercase;
		}

		.auth-header__back {
			position: absolute;
			left: 0;
			top: 50%;
			transform: translateY(-50%);
		}

    .field-container, .field-container-password {
        position: relative;
        display: flex;
    }

    .field-container > input {
        width: 100%;
    }

    .field-container.invalid::after {
        content: " ";
        display: block;
        position: absolute;
        right: 15px;
        top: 12px;
        background: url("res/error.svg") no-repeat center center;
        width: 17px;
        height: 15px;
        cursor: pointer;
    }

    .field-container-password > input {
        text-transform: initial;
    }

    .field-container-password.invalid > input {
        border: 0.125rem solid #A40000;
    }

    .password-switch {
        display: block;
        position: absolute;
        right: 15px;
        top: 11px;
        background: url("res/password.svg") no-repeat center center;
        width: 25px;
        height: 19px;
        cursor: pointer;
    }

    .password-switch.hidden {
        display: block;
        position: absolute;
        right: 15px;
        top: 11px;
        background: url("res/password-hidden.svg") no-repeat center center;
        width: 25px;
        height: 19px;
        cursor: pointer;
    }

    input[type="password"] {
        -webkit-text-security: square;
    }

    .checkbox {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
				-webkit-box-align: start;
				-ms-flex-align: start;
				align-items: flex-start;
        position: relative;
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
        max-width: 100%;
        margin: 0;
        cursor: pointer;
    }
    .checkbox__input {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        width: 1.25rem;
        height: 1.25rem;
        padding: 0;

        background-color: #090F1D;
        border: 3px solid #fff;
        -webkit-transition: .3s;
        transition: .3s;
        outline: none;
        rotate: 45deg;
        cursor: pointer;
        border-radius: initial !important;
    }
    .checkbox__input::after {
        content: "";
        position: absolute;
        inset: 0.1875rem;
        display: block;
        background-color: #B60707;
        scale: 0;
        -webkit-transition: .3s;
        transition: .3s;
    }
    .checkbox__input:checked::after {
        scale: 1;
    }
    .checkbox__control:disabled + .checkbox__label {
        cursor: not-allowed;
        opacity: 0.5;
    }
    .checkbox__label {
				font-family: "PT Serif", serif;
        font-size: 16px;
				font-weight: 400;
				font-style: normal;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        margin: 0 0 0 0.625rem;
				color: #FFFFFF;

				a {
					color: hsla(40, 100%, 77%, 1);
					font-size: inherit;
				}
    }

    #tou-label {
        display: flex;
    }

    .button {
        position: relative;
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 0;
        height: 4.1875rem;
        border: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: pointer;
        outline: none;
        background: none;
        border-radius: 0;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        overflow: hidden;
        text-decoration: none;
    }
    .button[disabled] {
        -webkit-filter: grayscale(1) brightness(0.3);
        filter: grayscale(1) brightness(0.3);
        pointer-events: none;
    }
    @media (any-hover: hover) {
        .button--image:hover .button__image--hover {
            opacity: 1;
            visibility: visible;
        }
    }
    @media (any-hover: none) {
        .button--image:active .button__image--hover {
            opacity: 1;
            visibility: visible;
        }
    }
    .button__image {
        pointer-events: none;
        -webkit-transition: .3s;
        transition: .3s;
    }
    .button__image--hover {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        z-index: 2;
    }
    .button__label {
        pointer-events: none;
        position: absolute;
        left: 50%;
        top: 50%;
        translate: -50% -50%;
        font-family: "Philosopher", sans-serif;
        font-size: 1.25rem;
        color: hsla(0, 0%, 100%, 1);
        text-transform: uppercase;
        font-weight: 700;
        z-index: 3;
    }

    a {
        font-size: 14px;
        text-decoration: none;
        color: #FFFFFFA8;
    }

    .links-container {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        width: 100%;

				&.centered {
					justify-content: center;
				}

				a {
					text-transform: uppercase;
				}
    }

    .link-green {
        color: #1D3A42;
    }

    .nickname {
        color: #FFD789;
        font-size: 32px;
        font-weight: 700;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0;
        max-width: 340px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nickname-image {
        align-self: center;
    }

    .nickname-container {
        display: flex;
        flex-direction: column;
    }

    .tou-container, .tou-container-checkbox {
        font-family: "PT Serif", serif;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        font-size: 9px;
        color: #FFFFFFA8;
        .tou-link {
            color: #F9DC7C;
            font-size: 16px;
            font-weight: 400;

        }

				a {
					font-size: 16px;
					text-align: center;
					color: hsla(40, 100%, 77%, 1);
					text-decoration: none;
				}
    }

    .tou-container {
    }

    .tou-container-checkbox {
        font-family: "PT Serif", serif;
        font-size: 9px;
        font-weight: 400;
        max-width: 260px;
    }

    .action-container {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        flex-grow: 1;
				width: 100%;
    }

    .fields-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        gap: 6px;
        flex-grow: 1;
    }

    .error-container-visible  {
        margin: 8px 10px;
        display: flex;
        gap: 12px;
        max-width: 300px;
    }

    .error-container {
				display: none;
        visibility: hidden;
        min-height: 16px;
    }

    #error-text, #confirm-message {
        font-size: 12px;
        font-weight: 400;
        color: #FFFFFFA8;
        text-transform: uppercase;
    }

    #confirm-message {
        text-align: center;
        margin-bottom: 8px;
    }

	 #resend-email {
		 color: #FFD789;
	 }


	.register-form__back {
		align-self: center;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		gap: 0.3rem;
		color: #FFFFFFA8;
		text-transform: uppercase;
		margin-top: 20px;
		font-size: 14px;
	}

	.register-form__back_link {
		font-size: 14px;
		text-align: center;
		font-weight: bold;
		color: hsla(40, 100%, 77%, 1);
		text-decoration: none;
	}
}


