/* login form */
.auth-form {
    width: 425px;
    margin: 50px auto;
}

.auth-form form.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.auth-form__popup .close {
    display: block;
}

.auth-form__bottom {
    margin-top: 24px;
}

.auth-form .form-component {
    margin-bottom: 10px;
}

.auth-form .accept-terms-wrapper {
    margin-left: 14px;
    margin-top: 28px;
}

.auth-form .form-component input[type=checkbox] {
    display: inline-block;
    width: auto;
    margin-bottom: 0.35em;
}

.auth-form .description {
    padding: 5px;
    color: #9a9696;
    font-size: 0.9em;
}


.auth-form .error {
    display: none;
    padding: 5px 10px;
}

.auth-form label {
    display: none;
}

.auth-form .form-component input {
    width: 100%;
    border: 1px solid var(--color-gray-200);
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    padding: 14px 16px;
    border-radius: 6px;
    box-sizing: border-box;
}

.auth-form .form-component input:focus {
    outline: none;
    border: 1px solid var(--color-blue-600);
}

.auth-form .form-component input::placeholder {
    color: #999;
    opacity: 1;
}

.auth-form .form-component input::-webkit-input-placeholder {
    color: #999;
    opacity: 1;
}

.auth-form .form-component input::-moz-placeholder {
    color: #999;
    opacity: 1;
}

.auth-form .form-component input:-ms-input-placeholder {
    color: #999;
    opacity: 1;
}

.auth-form .btn {
    background: var(--color-blue-600);
    border: 1px solid #C2D7EF;
    border-radius: 6px;
    padding: 10px 15px;
    font-weight: bolder;
    color: #fff;
    width: 100%;
    cursor: pointer;
}

.auth-form .btn:hover {
    background: var(--color-blue-600);
}

.auth-form .password-wrapper {
    position: relative;
}

.auth-form .password-wrapper .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    z-index: 10;
    color: #666;
    transition: color 0.2s ease;
}

.auth-form .password-wrapper .password-toggle:hover {
    color: var(--color-blue-600);
}

.auth-form .password-wrapper .password-toggle svg {
    width: 16px;
    height: 16px;
    display: block;
}

.auth-form .auth-form__remember-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 0 5px;
}

.auth-form .remember-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form .toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form .toggle-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.auth-form .toggle-button {
    position: relative;
    width: 50px;
    height: 24px;
    background: #e5e5e5;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    padding: 0;
}

.auth-form .toggle-button:hover {
    background: #e5e5e5;
}

.auth-form .toggle-button.active {
    background: var(--color-blue-600, #e5e5e5);
}

.auth-form .toggle-button.active:hover {
    background: var(--color-blue-600, #e5e5e5);
}

.auth-form .toggle-switch {
    position: relative;
    width: 100%;
    height: 100%;
}

.auth-form .toggle-circle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-form .toggle-button.active .toggle-circle {
    transform: translateX(26px);
}

.auth-form .auth-form__recover {
    color: var(--color-blue-600);
    text-decoration: none;
    font-size: 0.9em;
}

.auth-form .auth-form__recover:hover {
    text-decoration: underline;
}

.auth-form .auth-form__switch-block {
    text-align: center;
    margin-top: 30px;
}

.auth-form .auth-form__switch {
    color: var(--color-blue-600);
    text-decoration: none;
    font-weight: 500;
}

.auth-form .auth-form__switch:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .auth-form {
        width: calc(100% - 20px);
        padding: 0 10px;
        margin: 100px auto;
    }
}
